Class: Odca::Overlays::LabelOverlay::LabelAttribute
- Inherits:
-
Object
- Object
- Odca::Overlays::LabelOverlay::LabelAttribute
- Defined in:
- lib/odca/overlays/label_overlay.rb
Instance Attribute Summary collapse
-
#attr_name ⇒ Object
readonly
Returns the value of attribute attr_name.
-
#categories ⇒ Object
readonly
Returns the value of attribute categories.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(attr_name:, categories:, label:) ⇒ LabelAttribute
constructor
A new instance of LabelAttribute.
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_name ⇒ Object (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 |
#categories ⇒ Object (readonly)
Returns the value of attribute categories.
107 108 109 |
# File 'lib/odca/overlays/label_overlay.rb', line 107 def categories @categories end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
107 108 109 |
# File 'lib/odca/overlays/label_overlay.rb', line 107 def label @label end |