Class: Telnyx::Resources::UserTags

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

Overview

User-defined tags for Telnyx resources

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ UserTags

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

Parameters:



36
37
38
# File 'lib/telnyx/resources/user_tags.rb', line 36

def initialize(client:)
  @client = client
end

Instance Method Details

#list(filter: nil, request_options: {}) ⇒ Telnyx::Models::UserTagListResponse

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

List all user tags.

Parameters:

Returns:

See Also:



21
22
23
24
25
26
27
28
29
30
31
# File 'lib/telnyx/resources/user_tags.rb', line 21

def list(params = {})
  parsed, options = Telnyx::UserTagListParams.dump_request(params)
  query = Telnyx::Internal::Util.encode_query_params(parsed)
  @client.request(
    method: :get,
    path: "user_tags",
    query: query,
    model: Telnyx::Models::UserTagListResponse,
    options: options
  )
end