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.
46 47 48 49 |
# File 'lib/ivapi/client/account.rb', line 46 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.
36 37 38 39 |
# File 'lib/ivapi/client/account.rb', line 36 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.
9 10 11 12 |
# File 'lib/ivapi/client/account.rb', line 9 def information params = { command: 'account_info' } get('/json.php', params) end |
#orders ⇒ Object
Get account orders.
Returns the Hash of account orders.
18 19 20 21 |
# File 'lib/ivapi/client/account.rb', line 18 def orders params = { command: 'account_orders' } get('/json.php', params) end |
#services ⇒ Object
Get account services.
Returns the Hash of account services.
26 27 28 29 |
# File 'lib/ivapi/client/account.rb', line 26 def services params = { command: 'account_services' } get('/json.php', params) end |