Class: Attribute

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
app/models/attribute.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#layerObject

Returns the value of attribute layer.



6
7
8
# File 'app/models/attribute.rb', line 6

def layer
  @layer
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'app/models/attribute.rb', line 6

def name
  @name
end