Sha256: 24ed93642a7c979f8f6fcf277649df7eef6306b432000a9f62f98a18b13847c0
Contents?: true
Size: 1.27 KB
Versions: 6
Compression:
Stored size: 1.27 KB
Contents
module Ivapi class Client class Account < Base # Get information about account. # # Returns the Hash of account information. def information params = { command: 'account_info' } get('/json.php', params) end alias_method :info, :information # Get account orders. # # Returns the Hash of account orders. def orders params = { command: 'account_orders' } get('/json.php', params) end # Get account services. # # Returns the Hash of account services. def services params = { command: 'account_services' } get('/json.php', params) end # Get account credits. # # count - The Integer of how many rows need to return (default: 10). # # Returns the Hash of account credits. def credits(count = 10) params = { command: 'account_credits', count: count } get('/json.php', params) end # Get account bonuses. # # count - The Integer of how many rows need to return (default: 10). # # Returns the Hash of account bonuses. def bonuses(count = 10) params = { command: 'account_bonuses', count: count } get('/json.php', params) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems