Class: Mugen::Account

Inherits:
Client
  • Object
show all
Defined in:
lib/mugen/account.rb

Class Method Summary collapse

Methods inherited from Client

before_get, before_post, before_put, check_for_errors

Class Method Details

.balance(options = {}) ⇒ Object

/account/balance (GET) Retrieves account balance in credits



19
20
21
22
23
# File 'lib/mugen/account.rb', line 19

def balance(options={})
  res = self.get "/account/balance", :query => options
  check_for_errors(res)
  res['response']      
end

.stats(options = {}) ⇒ Object

/account/stats (GET) Retrieves account stats, such as orders made.



9
10
11
12
13
# File 'lib/mugen/account.rb', line 9

def stats(options={})
  res = self.get "/account/stats", :query => options
  check_for_errors(res)
  res['response']
end