class HallidayWineList::Wine

Attributes

category[RW]
location[R]
variety[R]
winery[R]

Public Class Methods

all_wines() click to toggle source
# File lib/halliday_wine_list/wine.rb, line 8
def self.all_wines
  @@all_wines
end
new(winery= nil, variety= nil, location= nil, category) click to toggle source
# File lib/halliday_wine_list/wine.rb, line 16
def initialize(winery= nil, variety= nil, location= nil, category)
  @winery = winery
  @variety = variety
  @location = location
  @@all_wines << self
  self.category = category
  category.add_wine(self)
end
new_from_scraper(winery, variety, location, category) click to toggle source
# File lib/halliday_wine_list/wine.rb, line 25
def self.new_from_scraper(winery, variety, location, category)
  self.new(winery, variety, location, category)
end
print_wines() click to toggle source