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.



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

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

#ordersObject

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

#servicesObject

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