Class: Telnyx::Models::PhoneNumbersRegulatoryRequirementRetrieveResponse::Data::RegulatoryRequirement

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/telnyx/models/phone_numbers_regulatory_requirement_retrieve_response.rb,
sig/telnyx/models/phone_numbers_regulatory_requirement_retrieve_response.rbs

Defined Under Namespace

Classes: AcceptanceCriteria

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: nil, acceptance_criteria: nil, description: nil, example: nil, field_type: nil, label: nil, record_type: nil) ⇒ Object

Parameters:



# File 'lib/telnyx/models/phone_numbers_regulatory_requirement_retrieve_response.rb', line 114

Instance Attribute Details

#acceptance_criteriaTelnyx::Models::PhoneNumbersRegulatoryRequirementRetrieveResponse::Data::RegulatoryRequirement::AcceptanceCriteria?



79
80
# File 'lib/telnyx/models/phone_numbers_regulatory_requirement_retrieve_response.rb', line 79

optional :acceptance_criteria,
-> { Telnyx::Models::PhoneNumbersRegulatoryRequirementRetrieveResponse::Data::RegulatoryRequirement::AcceptanceCriteria }

#descriptionString? (readonly)

Returns the value of attribute description.

Returns:

  • (String, nil)


126
127
128
# File 'sig/telnyx/models/phone_numbers_regulatory_requirement_retrieve_response.rbs', line 126

def description
  @description
end

#exampleString? (readonly)

Returns the value of attribute example.

Returns:

  • (String, nil)


130
131
132
# File 'sig/telnyx/models/phone_numbers_regulatory_requirement_retrieve_response.rbs', line 130

def example
  @example
end

#field_typeString?

Parameters:

  • (String)

Returns:

  • (String, nil)


85
# File 'lib/telnyx/models/phone_numbers_regulatory_requirement_retrieve_response.rb', line 85

optional :field_type, String

#idString? (readonly)

Returns the value of attribute id.

Returns:

  • (String, nil)


122
123
124
# File 'sig/telnyx/models/phone_numbers_regulatory_requirement_retrieve_response.rbs', line 122

def id
  @id
end

#labelString?

Parameters:

  • (String)

Returns:

  • (String, nil)


90
# File 'lib/telnyx/models/phone_numbers_regulatory_requirement_retrieve_response.rb', line 90

optional :label, String

#record_typeString? (readonly)

Returns the value of attribute record_type.

Returns:

  • (String, nil)


134
135
136
# File 'sig/telnyx/models/phone_numbers_regulatory_requirement_retrieve_response.rbs', line 134

def record_type
  @record_type
end

Instance Method Details

#description=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


128
# File 'sig/telnyx/models/phone_numbers_regulatory_requirement_retrieve_response.rbs', line 128

def description=: (String) -> String

#example=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


132
# File 'sig/telnyx/models/phone_numbers_regulatory_requirement_retrieve_response.rbs', line 132

def example=: (String) -> String

#id=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


124
# File 'sig/telnyx/models/phone_numbers_regulatory_requirement_retrieve_response.rbs', line 124

def id=: (String) -> String

#record_type=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


136
# File 'sig/telnyx/models/phone_numbers_regulatory_requirement_retrieve_response.rbs', line 136

def record_type=: (String) -> String

#to_hash{

Returns:

  • ({)


148
# File 'sig/telnyx/models/phone_numbers_regulatory_requirement_retrieve_response.rbs', line 148

def to_hash: -> {