Class: Nexmo::Account

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

Instance Method Summary collapse

Methods inherited from Namespace

#initialize

Constructor Details

This class inherits a constructor from Nexmo::Namespace

Instance Method Details

#balanceObject



5
6
7
# File 'lib/nexmo/account.rb', line 5

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

#topup(params) ⇒ Object



13
14
15
# File 'lib/nexmo/account.rb', line 13

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

#update(params) ⇒ Object



9
10
11
# File 'lib/nexmo/account.rb', line 9

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