Class: LaMetric::Frame

Inherits:
Struct
  • Object
show all
Defined in:
lib/la_metric/frame.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#iconObject

Returns the value of attribute icon

Returns:

  • (Object)

    the current value of icon



2
3
4
# File 'lib/la_metric/frame.rb', line 2

def icon
  @icon
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



2
3
4
# File 'lib/la_metric/frame.rb', line 2

def index
  @index
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



2
3
4
# File 'lib/la_metric/frame.rb', line 2

def text
  @text
end

Instance Method Details

#to_json(*args) ⇒ Object



3
4
5
# File 'lib/la_metric/frame.rb', line 3

def to_json(*args)
  to_h.to_json(*args)
end