Class: InterFAX::Account
- Inherits:
-
Object
- Object
- InterFAX::Account
- Defined in:
- lib/interfax/account.rb
Instance Method Summary collapse
- #balance ⇒ Object
-
#initialize(client) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(client) ⇒ Account
Returns a new instance of Account.
3 4 5 |
# File 'lib/interfax/account.rb', line 3 def initialize client @client = client end |
Instance Method Details
#balance ⇒ Object
7 8 9 |
# File 'lib/interfax/account.rb', line 7 def balance @client.get('/accounts/self/ppcards/balance').to_f end |