Class: Eyeballs::Attribute

Inherits:
Object
  • Object
show all
Defined in:
lib/eyeballs/scaffold_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



58
59
60
# File 'lib/eyeballs/scaffold_generator.rb', line 58

def name
  @name
end

#typeObject

Returns the value of attribute type.



58
59
60
# File 'lib/eyeballs/scaffold_generator.rb', line 58

def type
  @type
end