Class: Telnyx::Models::BundlePricing::UserBundleResource

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/bundle_pricing/user_bundle_resource.rb

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(id:, created_at:, resource:, resource_type:, updated_at: nil) ⇒ Object

Parameters:

  • id (String)

    Resource’s ID.

  • created_at (Date)

    Date the resource was created.

  • resource (String)

    The resource itself (usually a phone number).

  • resource_type (String)

    The type of the resource (usually ‘number’).

  • updated_at (Date, nil) (defaults to: nil)

    Date the resource was last updated.



# File 'lib/telnyx/models/bundle_pricing/user_bundle_resource.rb', line 37

Instance Attribute Details

#created_atDate

Date the resource was created.

Returns:

  • (Date)


17
# File 'lib/telnyx/models/bundle_pricing/user_bundle_resource.rb', line 17

required :created_at, Date

#idString

Resource’s ID.

Returns:

  • (String)


11
# File 'lib/telnyx/models/bundle_pricing/user_bundle_resource.rb', line 11

required :id, String

#resourceString

The resource itself (usually a phone number).

Returns:

  • (String)


23
# File 'lib/telnyx/models/bundle_pricing/user_bundle_resource.rb', line 23

required :resource, String

#resource_typeString

The type of the resource (usually ‘number’).

Returns:

  • (String)


29
# File 'lib/telnyx/models/bundle_pricing/user_bundle_resource.rb', line 29

required :resource_type, String

#updated_atDate?

Date the resource was last updated.

Returns:

  • (Date, nil)


35
# File 'lib/telnyx/models/bundle_pricing/user_bundle_resource.rb', line 35

optional :updated_at, Date, nil?: true