Class: ChinaShop::Buy
- Inherits:
-
Object
- Object
- ChinaShop::Buy
- Defined in:
- lib/chinashop/buy.rb
Instance Attribute Summary collapse
-
#all ⇒ Object
Returns the value of attribute all.
-
#result ⇒ Object
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(buy = {}) ⇒ Buy
constructor
A new instance of Buy.
Constructor Details
#initialize(buy = {}) ⇒ Buy
Returns a new instance of Buy.
5 6 7 8 |
# File 'lib/chinashop/buy.rb', line 5 def initialize(buy = {}) self.all = buy self.result = buy['result'] end |
Instance Attribute Details
#all ⇒ Object
Returns the value of attribute all.
3 4 5 |
# File 'lib/chinashop/buy.rb', line 3 def all @all end |
#result ⇒ Object
Returns the value of attribute result.
3 4 5 |
# File 'lib/chinashop/buy.rb', line 3 def result @result end |