class NYCTheaterDiscounts::Show

Attributes

deal_url[RW]
name[RW]
price[RW]
vendor[RW]

Public Class Methods

all() click to toggle source
# File lib/nyc_theater_discounts/show.rb, line 19
def self.all
  @@all
end
new(show_name, show_price, url) click to toggle source
# File lib/nyc_theater_discounts/show.rb, line 10
def initialize(show_name, show_price, url)
  @name = show_name
  @price = show_price
  @deal_url = url
  @vendors = []
  @@all << self
end

Public Instance Methods

find_by_name(nameval) click to toggle source
# File lib/nyc_theater_discounts/show.rb, line 27
def find_by_name(nameval)
  self.all.detect{|a| a.name == nameval}
end
vendors() click to toggle source
# File lib/nyc_theater_discounts/show.rb, line 23
def vendors
  @vendors
end