Class: Telnyx::Resources::Porting

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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.

Parameters:



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

#eventsTelnyx::Resources::Porting::Events (readonly)



7
8
9
# File 'lib/telnyx/resources/porting.rb', line 7

def events
  @events
end

#loa_configurationsTelnyx::Resources::Porting::LoaConfigurations (readonly)



13
14
15
# File 'lib/telnyx/resources/porting.rb', line 13

def loa_configurations
  @loa_configurations
end

#reportsTelnyx::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.

Parameters:

Returns:

See Also:



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