Class: Telnyx::Models::Rcs::BrandAddress

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

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(administrative_area:, city:, country_code:, line_1:, postal_code:, line_2: nil) ⇒ Object

Parameters:

  • administrative_area (String)
  • city (String)
  • country_code (String)

    The two-letter ISO 3166-1 country code.

  • line_1 (String)
  • postal_code (String)
  • line_2 (String, nil) (defaults to: nil)


# File 'lib/telnyx/models/rcs/brand_address.rb', line 38

Instance Attribute Details

#administrative_areaString

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/telnyx/models/rcs/brand_address.rb', line 10

required :administrative_area, String

#cityString

Parameters:

  • value (String)

Returns:

  • (String)


15
# File 'lib/telnyx/models/rcs/brand_address.rb', line 15

required :city, String

#country_codeString

The two-letter ISO 3166-1 country code.

Parameters:

  • value (String)

Returns:

  • (String)


21
# File 'lib/telnyx/models/rcs/brand_address.rb', line 21

required :country_code, String

#line_1String

Parameters:

  • value (String)

Returns:

  • (String)


26
# File 'lib/telnyx/models/rcs/brand_address.rb', line 26

required :line_1, String

#line_2String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


36
# File 'lib/telnyx/models/rcs/brand_address.rb', line 36

optional :line_2, String, nil?: true

#postal_codeString

Parameters:

  • value (String)

Returns:

  • (String)


31
# File 'lib/telnyx/models/rcs/brand_address.rb', line 31

required :postal_code, String

Instance Method Details

#to_hash{

Returns:

  • ({)


36
# File 'sig/telnyx/models/rcs/brand_address.rbs', line 36

def to_hash: -> {