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