Module: OpenObserve::Api::Models::LabelPosition

Defined in:
lib/openobserve-api/models/label_position.rb

Constant Summary collapse

TOP =
'top'
LEFT =
'left'
RIGHT =
'right'
BOTTOM =
'bottom'
INSIDE =
'inside'
INSIDE_LEFT =
'insideLeft'
INSIDE_RIGHT =
'insideRight'
INSIDE_TOP =
'insideTop'
INSIDE_BOTTOM =
'insideBottom'
INSIDE_TOP_LEFT =
'insideTopLeft'
INSIDE_BOTTOM_LEFT =
'insideBottomLeft'
INSIDE_TOP_RIGHT =
'insideTopRight'
INSIDE_BOTTOM_RIGHT =
'insideBottomRight'
OUTSIDE =
'outside'

Class Method Summary collapse

Class Method Details

.allObject



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/openobserve-api/models/label_position.rb', line 27

def self.all
  @all ||= [
    TOP,
    LEFT,
    RIGHT,
    BOTTOM,
    INSIDE,
    INSIDE_LEFT,
    INSIDE_RIGHT,
    INSIDE_TOP,
    INSIDE_BOTTOM,
    INSIDE_TOP_LEFT,
    INSIDE_BOTTOM_LEFT,
    INSIDE_TOP_RIGHT,
    INSIDE_BOTTOM_RIGHT,
    OUTSIDE,
  ].freeze
end

.valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/openobserve-api/models/label_position.rb', line 46

def self.valid?(value)
  all.include?(value)
end