Class: Telnyx::Resources::Porting
- Inherits:
-
Object
- Object
- Telnyx::Resources::Porting
- Defined in:
- lib/telnyx/resources/porting.rb,
lib/telnyx/resources/porting/events.rb,
lib/telnyx/resources/porting/reports.rb,
lib/telnyx/resources/porting/loa_configurations.rb
Defined Under Namespace
Classes: Events, LoaConfigurations, Reports
Instance Attribute Summary collapse
- #events ⇒ Telnyx::Resources::Porting::Events readonly
- #loa_configurations ⇒ Telnyx::Resources::Porting::LoaConfigurations readonly
- #reports ⇒ Telnyx::Resources::Porting::Reports readonly
Instance Method Summary collapse
-
#initialize(client:) ⇒ Porting
constructor
private
A new instance of Porting.
-
#list_uk_carriers(request_options: {}) ⇒ Telnyx::Models::PortingListUkCarriersResponse
List available carriers in the UK.
Constructor Details
#initialize(client:) ⇒ Porting
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 Porting.
36 37 38 39 40 41 |
# File 'lib/telnyx/resources/porting.rb', line 36 def initialize(client:) @client = client @events = Telnyx::Resources::Porting::Events.new(client: client) @reports = Telnyx::Resources::Porting::Reports.new(client: client) @loa_configurations = Telnyx::Resources::Porting::LoaConfigurations.new(client: client) end |
Instance Attribute Details
#events ⇒ Telnyx::Resources::Porting::Events (readonly)
7 8 9 |
# File 'lib/telnyx/resources/porting.rb', line 7 def events @events end |
#loa_configurations ⇒ Telnyx::Resources::Porting::LoaConfigurations (readonly)
13 14 15 |
# File 'lib/telnyx/resources/porting.rb', line 13 def loa_configurations @loa_configurations end |
#reports ⇒ Telnyx::Resources::Porting::Reports (readonly)
10 11 12 |
# File 'lib/telnyx/resources/porting.rb', line 10 def reports @reports end |
Instance Method Details
#list_uk_carriers(request_options: {}) ⇒ Telnyx::Models::PortingListUkCarriersResponse
List available carriers in the UK.
24 25 26 27 28 29 30 31 |
# File 'lib/telnyx/resources/porting.rb', line 24 def list_uk_carriers(params = {}) @client.request( method: :get, path: "porting/uk_carriers", model: Telnyx::Models::PortingListUkCarriersResponse, options: params[:request_options] ) end |