Class: Telnyx::Resources::NotificationEventConditions

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

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ NotificationEventConditions

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

Parameters:



40
41
42
# File 'lib/telnyx/resources/notification_event_conditions.rb', line 40

def initialize(client:)
  @client = client
end

Instance Method Details

#list(filter: nil, page_number: nil, page_size: nil, request_options: {}) ⇒ Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::NotificationEventConditionListResponse>

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

Returns a list of your notifications events conditions.

filter[associated_

Parameters:

Returns:

See Also:



25
26
27
28
29
30
31
32
33
34
35
# File 'lib/telnyx/resources/notification_event_conditions.rb', line 25

def list(params = {})
  parsed, options = Telnyx::NotificationEventConditionListParams.dump_request(params)
  @client.request(
    method: :get,
    path: "notification_event_conditions",
    query: parsed.transform_keys(page_number: "page[number]", page_size: "page[size]"),
    page: Telnyx::Internal::DefaultFlatPagination,
    model: Telnyx::Models::NotificationEventConditionListResponse,
    options: options
  )
end