Class: Telnyx::Models::Pricing::ProductListResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/pricing/product_list_response.rb,
sig/telnyx/models/pricing/product_list_response.rbs

Overview

See Also:

  • Telnyx::Resources::Pricing::Products#list

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(description:, name:, slug:) ⇒ Object

Parameters:

  • description (String)

    Human-readable description of the product.

  • name (String)

    Display name of the product.

  • slug (String)

    Product identifier used in the per-product pricing endpoint.



# File 'lib/telnyx/models/pricing/product_list_response.rb', line 26

Instance Attribute Details

#descriptionString

Human-readable description of the product.

Parameters:

  • value (String)

Returns:

  • (String)


12
# File 'lib/telnyx/models/pricing/product_list_response.rb', line 12

required :description, String

#nameString

Display name of the product.

Parameters:

  • value (String)

Returns:

  • (String)


18
# File 'lib/telnyx/models/pricing/product_list_response.rb', line 18

required :name, String

#slugString

Product identifier used in the per-product pricing endpoint.

Parameters:

  • value (String)

Returns:

  • (String)


24
# File 'lib/telnyx/models/pricing/product_list_response.rb', line 24

required :slug, String

Instance Method Details

#to_hash{ description: String, name: String, slug: String }

Returns:

  • ({ description: String, name: String, slug: String })


20
# File 'sig/telnyx/models/pricing/product_list_response.rbs', line 20

def to_hash: -> { description: String, name: String, slug: String }