Class: Attribute
- Inherits:
-
Object
- Object
- Attribute
- Includes:
- ActiveModel::Validations
- Defined in:
- app/models/attribute.rb
Instance Attribute Summary collapse
-
#layer ⇒ Object
Returns the value of attribute layer.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(layer, name) ⇒ Attribute
constructor
A new instance of Attribute.
Constructor Details
#initialize(layer, name) ⇒ Attribute
Returns a new instance of Attribute.
8 9 10 |
# File 'app/models/attribute.rb', line 8 def initialize(layer, name) @layer, @name = layer, name end |
Instance Attribute Details
#layer ⇒ Object
Returns the value of attribute layer.
6 7 8 |
# File 'app/models/attribute.rb', line 6 def layer @layer end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'app/models/attribute.rb', line 6 def name @name end |