Class: Nexmo::Numbers
- Inherits:
-
Namespace
- Object
- Namespace
- Nexmo::Numbers
- Defined in:
- lib/nexmo/numbers.rb
Defined Under Namespace
Classes: ListResponse, Response
Instance Method Summary collapse
-
#buy(params) ⇒ Response
Request to purchase a specific inbound number.
-
#cancel(params) ⇒ Response
Cancel your subscription for a specific inbound number.
-
#list(params = nil) ⇒ ListResponse
Retrieve all the inbound numbers associated with your Nexmo account.
-
#search(params) ⇒ ListResponse
Retrieve inbound numbers that are available for the specified country.
-
#update(params) ⇒ Response
Change the behaviour of a number that you own.
Instance Method Details
#buy(params) ⇒ Response
Request to purchase a specific inbound number.
119 120 121 |
# File 'lib/nexmo/numbers.rb', line 119 def buy(params) request('/number/buy', params: params, type: Post, response_class: Response) end |
#cancel(params) ⇒ Response
Cancel your subscription for a specific inbound number.
144 145 146 |
# File 'lib/nexmo/numbers.rb', line 144 def cancel(params) request('/number/cancel', params: params, type: Post, response_class: Response) end |
#list(params = nil) ⇒ ListResponse
Retrieve all the inbound numbers associated with your Nexmo account.
50 51 52 |
# File 'lib/nexmo/numbers.rb', line 50 def list(params = nil) request('/account/numbers', params: params, response_class: ListResponse) end |
#search(params) ⇒ ListResponse
Retrieve inbound numbers that are available for the specified country.
94 95 96 |
# File 'lib/nexmo/numbers.rb', line 94 def search(params) request('/number/search', params: params, response_class: ListResponse) end |