Class: OnlineSim::GetUser

Inherits:
Base
  • Object
show all
Defined in:
lib/onlinesim/GetUser.rb

Constant Summary

Constants inherited from Base

Base::HTTP_OK_CODE

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from OnlineSim::Base

Instance Method Details

#balanceObject



5
6
7
# File 'lib/onlinesim/GetUser.rb', line 5

def balance
  return self ._get(:endpoint => 'getBalance', :params => {income: true})
end

#profileObject



9
10
11
# File 'lib/onlinesim/GetUser.rb', line 9

def profile
  return self ._get(:endpoint => 'getProfile')['profile']
end