Module: Twizo::Balance

Defined in:
lib/twizo/modules/balance.rb

Instance Method Summary collapse

Instance Method Details

#sendObject

Send message to the server and return response

Returns:

  • (Object)


21
22
23
24
25
26
27
# 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