Class: RumbleBundle::Bundle
- Inherits:
-
Object
- Object
- RumbleBundle::Bundle
- Defined in:
- lib/rumble_bundle/bundle.rb
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#charities ⇒ Object
Returns the value of attribute charities.
-
#name ⇒ Object
Returns the value of attribute name.
-
#products ⇒ Object
Returns the value of attribute products.
-
#tiers ⇒ Object
Returns the value of attribute tiers.
-
#total_msrp ⇒ Object
Returns the value of attribute total_msrp.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data_hash) ⇒ Bundle
constructor
A new instance of Bundle.
Constructor Details
#initialize(data_hash) ⇒ Bundle
Returns a new instance of Bundle.
11 12 13 14 |
# File 'lib/rumble_bundle/bundle.rb', line 11 def initialize(data_hash) data_hash.each{|key, val| self.send("#{key}=", val)} self.class.all << self end |
Instance Attribute Details
#charities ⇒ Object
Returns the value of attribute charities.
3 4 5 |
# File 'lib/rumble_bundle/bundle.rb', line 3 def charities @charities end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/rumble_bundle/bundle.rb', line 3 def name @name end |
#products ⇒ Object
Returns the value of attribute products.
3 4 5 |
# File 'lib/rumble_bundle/bundle.rb', line 3 def products @products end |
#tiers ⇒ Object
Returns the value of attribute tiers.
3 4 5 |
# File 'lib/rumble_bundle/bundle.rb', line 3 def tiers @tiers end |
#total_msrp ⇒ Object
Returns the value of attribute total_msrp.
3 4 5 |
# File 'lib/rumble_bundle/bundle.rb', line 3 def total_msrp @total_msrp end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/rumble_bundle/bundle.rb', line 3 def url @url end |
Class Method Details
.all ⇒ Object
7 8 9 |
# File 'lib/rumble_bundle/bundle.rb', line 7 def self.all @@all end |