Class: Telnyx::Resources::AvailablePhoneNumberBlocks

Inherits:
Object
  • Object
show all
Defined in:
lib/telnyx/resources/available_phone_number_blocks.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ AvailablePhoneNumberBlocks

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 AvailablePhoneNumberBlocks.

Parameters:



34
35
36
# File 'lib/telnyx/resources/available_phone_number_blocks.rb', line 34

def initialize(client:)
  @client = client
end

Instance Method Details

#list(filter: nil, request_options: {}) ⇒ Telnyx::Models::AvailablePhoneNumberBlockListResponse

Some parameter documentations has been truncated, see Models::AvailablePhoneNumberBlockListParams for more details.

List available phone number blocks

Parameters:

Returns:

See Also:



20
21
22
23
24
25
26
27
28
29
# File 'lib/telnyx/resources/available_phone_number_blocks.rb', line 20

def list(params = {})
  parsed, options = Telnyx::AvailablePhoneNumberBlockListParams.dump_request(params)
  @client.request(
    method: :get,
    path: "available_phone_number_blocks",
    query: parsed,
    model: Telnyx::Models::AvailablePhoneNumberBlockListResponse,
    options: options
  )
end