Class: Telnyx::Resources::InventoryCoverage
- Inherits:
-
Object
- Object
- Telnyx::Resources::InventoryCoverage
- Defined in:
- lib/telnyx/resources/inventory_coverage.rb
Overview
Inventory Level
Instance Method Summary collapse
-
#initialize(client:) ⇒ InventoryCoverage
constructor
private
A new instance of InventoryCoverage.
-
#list(filter: nil, request_options: {}) ⇒ Telnyx::Models::InventoryCoverageListResponse
Some parameter documentations has been truncated, see Models::InventoryCoverageListParams for more details.
Constructor Details
#initialize(client:) ⇒ InventoryCoverage
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 InventoryCoverage.
38 39 40 |
# File 'lib/telnyx/resources/inventory_coverage.rb', line 38 def initialize(client:) @client = client end |
Instance Method Details
#list(filter: nil, request_options: {}) ⇒ Telnyx::Models::InventoryCoverageListResponse
Some parameter documentations has been truncated, see Models::InventoryCoverageListParams for more details.
Creates an inventory coverage request. If locality, npa or national_destination_code is used in groupBy, and no region or locality filters are used, the whole paginated set is returned.
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/telnyx/resources/inventory_coverage.rb', line 23 def list(params = {}) parsed, = Telnyx::InventoryCoverageListParams.dump_request(params) query = Telnyx::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "inventory_coverage", query: query, model: Telnyx::Models::InventoryCoverageListResponse, options: ) end |