Class: Subsify::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/subsify/account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Account

Returns a new instance of Account.



5
6
7
8
# File 'lib/subsify/account.rb', line 5

def initialize(data)
  @currency = data['currency']
  @balance = data['balance']
end

Instance Attribute Details

#balanceObject (readonly)

Returns the value of attribute balance.



4
5
6
# File 'lib/subsify/account.rb', line 4

def balance
  @balance
end

#currencyObject (readonly)

Returns the value of attribute currency.



4
5
6
# File 'lib/subsify/account.rb', line 4

def currency
  @currency
end