Class: Subsify::Account
- Inherits:
-
Object
- Object
- Subsify::Account
- Defined in:
- lib/subsify/account.rb
Instance Attribute Summary collapse
-
#balance ⇒ Object
readonly
Returns the value of attribute balance.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
Instance Method Summary collapse
-
#initialize(data) ⇒ Account
constructor
A new instance of Account.
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
#balance ⇒ Object (readonly)
Returns the value of attribute balance.
4 5 6 |
# File 'lib/subsify/account.rb', line 4 def balance @balance end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
4 5 6 |
# File 'lib/subsify/account.rb', line 4 def currency @currency end |