Class: NYCTheaterDiscounts::Vendor
- Inherits:
-
Object
- Object
- NYCTheaterDiscounts::Vendor
- Defined in:
- lib/nyc_theater_discounts/vendor.rb
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#lowest_price ⇒ Object
Returns the value of attribute lowest_price.
-
#name ⇒ Object
Returns the value of attribute name.
-
#shows ⇒ Object
Returns the value of attribute shows.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(vendor_name, path) ⇒ Vendor
constructor
A new instance of Vendor.
Constructor Details
#initialize(vendor_name, path) ⇒ Vendor
Returns a new instance of Vendor.
10 11 12 13 14 15 |
# File 'lib/nyc_theater_discounts/vendor.rb', line 10 def initialize( vendor_name, path) @name = vendor_name @url = path @shows = [] @@all << self end |
Instance Attribute Details
#lowest_price ⇒ Object
Returns the value of attribute lowest_price.
6 7 8 |
# File 'lib/nyc_theater_discounts/vendor.rb', line 6 def lowest_price @lowest_price end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/nyc_theater_discounts/vendor.rb', line 6 def name @name end |
#shows ⇒ Object
Returns the value of attribute shows.
6 7 8 |
# File 'lib/nyc_theater_discounts/vendor.rb', line 6 def shows @shows end |
#url ⇒ Object
Returns the value of attribute url.
6 7 8 |
# File 'lib/nyc_theater_discounts/vendor.rb', line 6 def url @url end |
Class Method Details
.all ⇒ Object
17 18 19 |
# File 'lib/nyc_theater_discounts/vendor.rb', line 17 def self.all @@all end |