Class: Odca::Overlays::LabelOverlay::LabelAttribute

Inherits:
Object
  • Object
show all
Defined in:
lib/odca/overlays/label_overlay.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attr_name:, categories:, label:) ⇒ LabelAttribute

Returns a new instance of LabelAttribute.



109
110
111
112
113
# File 'lib/odca/overlays/label_overlay.rb', line 109

def initialize(attr_name:, categories:, label:)
  @attr_name = attr_name
  @categories = categories
  @label = label
end

Instance Attribute Details

#attr_nameObject (readonly)

Returns the value of attribute attr_name.



107
108
109
# File 'lib/odca/overlays/label_overlay.rb', line 107

def attr_name
  @attr_name
end

#categoriesObject (readonly)

Returns the value of attribute categories.



107
108
109
# File 'lib/odca/overlays/label_overlay.rb', line 107

def categories
  @categories
end

#labelObject (readonly)

Returns the value of attribute label.



107
108
109
# File 'lib/odca/overlays/label_overlay.rb', line 107

def label
  @label
end