Class: Eyeballs::Attribute
- Inherits:
-
Object
- Object
- Eyeballs::Attribute
- Defined in:
- lib/eyeballs/scaffold_generator.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Attribute
constructor
A new instance of Attribute.
Constructor Details
#initialize(attributes = {}) ⇒ Attribute
Returns a new instance of Attribute.
60 61 62 63 64 |
# File 'lib/eyeballs/scaffold_generator.rb', line 60 def initialize(attributes = {}) attributes.each_pair do |key, val| self.send("#{key}=", val) end end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
58 59 60 |
# File 'lib/eyeballs/scaffold_generator.rb', line 58 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
58 59 60 |
# File 'lib/eyeballs/scaffold_generator.rb', line 58 def type @type end |