Class: ChinaShop::Deposits

Inherits:
Object
  • Object
show all
Defined in:
lib/chinashop/deposits.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#allObject

Returns the value of attribute all.



3
4
5
# File 'lib/chinashop/deposits.rb', line 3

def all
  @all
end