Class: Ivapi::Client::Account
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#bonuses(count = 10) ⇒ Object
Get account bonuses.
-
#credits(count = 10) ⇒ Object
Get account credits.
-
#information ⇒ Object
(also: #info)
Get information about account.
-
#orders ⇒ Object
Get account orders.
-
#services ⇒ Object
Get account services.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Ivapi::Client::Base
Instance Method Details
#bonuses(count = 10) ⇒ Object
Get account bonuses.
count - The Integer of how many rows need to return (default: 10).
Returns the Hash of account bonuses.
44 45 46 47 |
# File 'lib/ivapi/client/account.rb', line 44 def bonuses(count = 10) params = { command: 'account_bonuses', count: count } get('/json.php', params) end |
#credits(count = 10) ⇒ Object
Get account credits.
count - The Integer of how many rows need to return (default: 10).
Returns the Hash of account credits.
34 35 36 37 |
# File 'lib/ivapi/client/account.rb', line 34 def credits(count = 10) params = { command: 'account_credits', count: count } get('/json.php', params) end |
#information ⇒ Object Also known as: info
Get information about account.
Returns the Hash of account information.
7 8 9 10 |
# File 'lib/ivapi/client/account.rb', line 7 def information params = { command: 'account_info' } get('/json.php', params) end |
#orders ⇒ Object
Get account orders.
Returns the Hash of account orders.
16 17 18 19 |
# File 'lib/ivapi/client/account.rb', line 16 def orders params = { command: 'account_orders' } get('/json.php', params) end |
#services ⇒ Object
Get account services.
Returns the Hash of account services.
24 25 26 27 |
# File 'lib/ivapi/client/account.rb', line 24 def services params = { command: 'account_services' } get('/json.php', params) end |