Class: Sanctuary::Planter::Plant

Inherits:
Object
  • Object
show all
Defined in:
lib/sanctuary/planter/plant.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fieldsObject

Returns the value of attribute fields.



4
5
6
# File 'lib/sanctuary/planter/plant.rb', line 4

def fields
  @fields
end

#methodsObject

Returns the value of attribute methods.



4
5
6
# File 'lib/sanctuary/planter/plant.rb', line 4

def methods
  @methods
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/sanctuary/planter/plant.rb', line 4

def name
  @name
end

#plant_templateObject

Returns the value of attribute plant_template.



4
5
6
# File 'lib/sanctuary/planter/plant.rb', line 4

def plant_template
  @plant_template
end