Class: Sanctuary::Planter::Plant
- Inherits:
-
Object
- Object
- Sanctuary::Planter::Plant
- Defined in:
- lib/sanctuary/planter/plant.rb
Instance Attribute Summary collapse
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#methods ⇒ Object
Returns the value of attribute methods.
-
#name ⇒ Object
Returns the value of attribute name.
-
#plant_template ⇒ Object
Returns the value of attribute plant_template.
Instance Method Summary collapse
-
#initialize(name, fields, methods, plant_template) ⇒ Plant
constructor
A new instance of Plant.
Constructor Details
#initialize(name, fields, methods, plant_template) ⇒ Plant
Returns a new instance of Plant.
5 6 7 8 9 10 |
# File 'lib/sanctuary/planter/plant.rb', line 5 def initialize(name, fields, methods, plant_template) @name = name @fields = fields @methods = methods @plant_template = plant_template end |
Instance Attribute Details
#fields ⇒ Object
Returns the value of attribute fields.
4 5 6 |
# File 'lib/sanctuary/planter/plant.rb', line 4 def fields @fields end |
#methods ⇒ Object
Returns the value of attribute methods.
4 5 6 |
# File 'lib/sanctuary/planter/plant.rb', line 4 def methods @methods end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/sanctuary/planter/plant.rb', line 4 def name @name end |
#plant_template ⇒ Object
Returns the value of attribute plant_template.
4 5 6 |
# File 'lib/sanctuary/planter/plant.rb', line 4 def plant_template @plant_template end |