Class: Nexmo::Account

Inherits:
Namespace show all
Defined in:
lib/nexmo/account.rb

Instance Method Summary collapse

Methods inherited from Namespace

authentication, authentication=, host, host=, #initialize, request_body, request_body=

Constructor Details

This class inherits a constructor from Nexmo::Namespace

Instance Method Details

#balanceObject



7
8
9
# File 'lib/nexmo/account.rb', line 7

def balance
  request('/account/get-balance')
end

#topup(params) ⇒ Object



15
16
17
# File 'lib/nexmo/account.rb', line 15

def topup(params)
  request('/account/top-up', params: params, type: Post)
end

#update(params) ⇒ Object



11
12
13
# File 'lib/nexmo/account.rb', line 11

def update(params)
  request('/account/settings', params: params, type: Post)
end