Class: Vonage::Numbers
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Numbers
- Defined in:
- lib/vonage/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 Vonage 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.
129 130 131 132 133 134 135 136 |
# File 'lib/vonage/numbers.rb', line 129 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.
159 160 161 162 163 164 165 166 |
# File 'lib/vonage/numbers.rb', line 159 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 Vonage account.
56 57 58 |
# File 'lib/vonage/numbers.rb', line 56 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.
104 105 106 |
# File 'lib/vonage/numbers.rb', line 104 def search(params) request("/number/search", params: params, response_class: ListResponse) end |