Class: Telnyx::Resources::GlobalIPProtocols

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

Overview

Global IPs

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ GlobalIPProtocols

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

Parameters:



28
29
30
# File 'lib/telnyx/resources/global_ip_protocols.rb', line 28

def initialize(client:)
  @client = client
end

Instance Method Details

#list(request_options: {}) ⇒ Telnyx::Models::GlobalIPProtocolListResponse

List all Global IP Protocols

Parameters:

Returns:

See Also:



16
17
18
19
20
21
22
23
# File 'lib/telnyx/resources/global_ip_protocols.rb', line 16

def list(params = {})
  @client.request(
    method: :get,
    path: "global_ip_protocols",
    model: Telnyx::Models::GlobalIPProtocolListResponse,
    options: params[:request_options]
  )
end