Class: Vonage::Account

Inherits:
Namespace
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/vonage/account.rb

Instance Method Summary collapse

Instance Method Details

#balanceObject



18
19
20
# File 'lib/vonage/account.rb', line 18

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

#topup(params) ⇒ Object



57
58
59
# File 'lib/vonage/account.rb', line 57

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

#update(params) ⇒ Object



41
42
43
# File 'lib/vonage/account.rb', line 41

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