class PlantScraper::Plant
Attributes
height[RW]
light[RW]
name[RW]
summary[RW]
type[RW]
zones[RW]
Public Class Methods
all()
click to toggle source
# File lib/plant_info_scraper/plant.rb, line 17 def self.all @@all end
clear()
click to toggle source
# File lib/plant_info_scraper/plant.rb, line 21 def self.clear @@all.clear end
new(name, light, height, zones, type, summary)
click to toggle source
# File lib/plant_info_scraper/plant.rb, line 6 def initialize(name, light, height, zones, type, summary) @name = name @light = light @height = height @zones = zones @type = type @summary = summary # TODO: Breakout scientific name in future @scientific_name = scientific_name @@all << self end