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