Class: Ivapi::Client::Account

Inherits:
Base
  • Object
show all
Defined in:
lib/ivapi/client/account.rb

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#get, #initialize

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

#informationObject 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

#ordersObject

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

#servicesObject

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