Method: Attribute#initialize
- Defined in:
- lib/attribute.rb
#initialize(attribute) ⇒ Attribute
Returns a new instance of Attribute.
4 5 6 7 |
# File 'lib/attribute.rb', line 4 def initialize(attribute) @name = attribute['name'] @type = attribute['type'] end |