Class: ChinaShop::Sell
- Inherits:
-
Object
- Object
- ChinaShop::Sell
- Defined in:
- lib/chinashop/sell.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 = {}) ⇒ Sell
constructor
A new instance of Sell.
Constructor Details
#initialize(buy = {}) ⇒ Sell
Returns a new instance of Sell.
5 6 7 8 |
# File 'lib/chinashop/sell.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/sell.rb', line 3 def all @all end |
#result ⇒ Object
Returns the value of attribute result.
3 4 5 |
# File 'lib/chinashop/sell.rb', line 3 def result @result end |