Class: Telnyx::Resources::NumberReservations::Actions
- Inherits:
-
Object
- Object
- Telnyx::Resources::NumberReservations::Actions
- Defined in:
- lib/telnyx/resources/number_reservations/actions.rb
Overview
Number reservations
Instance Method Summary collapse
-
#extend_(number_reservation_id, request_options: {}) ⇒ Telnyx::Models::NumberReservations::ActionExtendResponse
Extends reservation expiry time on all phone numbers.
-
#initialize(client:) ⇒ Actions
constructor
private
A new instance of Actions.
Constructor Details
#initialize(client:) ⇒ Actions
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Actions.
31 32 33 |
# File 'lib/telnyx/resources/number_reservations/actions.rb', line 31 def initialize(client:) @client = client end |
Instance Method Details
#extend_(number_reservation_id, request_options: {}) ⇒ Telnyx::Models::NumberReservations::ActionExtendResponse
Extends reservation expiry time on all phone numbers.
19 20 21 22 23 24 25 26 |
# File 'lib/telnyx/resources/number_reservations/actions.rb', line 19 def extend_(number_reservation_id, params = {}) @client.request( method: :post, path: ["number_reservations/%1$s/actions/extend", number_reservation_id], model: Telnyx::Models::NumberReservations::ActionExtendResponse, options: params[:request_options] ) end |