module Twizo::Balance

Public Instance Methods

send() click to toggle source

Send message to the server and return response

@return [Object]

# File lib/twizo/modules/balance.rb, line 21
def send
  response = send_api_call(Entity::ACTION_RETRIEVE, location)

  raise response if response.kind_of?(TwizoError)

  response_to_array(response)
end

Private Instance Methods

location() click to toggle source

@return [String]

# File lib/twizo/modules/balance.rb, line 34
def location
  'wallet/getbalance'
end