Class: Telnyx::Models::MessagingHostedNumberOrderValidateCodesParams::VerificationCode
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::MessagingHostedNumberOrderValidateCodesParams::VerificationCode
- Defined in:
- lib/telnyx/models/messaging_hosted_number_order_validate_codes_params.rb,
sig/telnyx/models/messaging_hosted_number_order_validate_codes_params.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(code:, phone_number:) ⇒ VerificationCode
constructor
A new instance of VerificationCode.
- #to_hash ⇒ { code: String, phone_number: String }
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(code:, phone_number:) ⇒ VerificationCode
Returns a new instance of VerificationCode.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/telnyx/models/messaging_hosted_number_order_validate_codes_params.rb', line 26 class VerificationCode < Telnyx::Internal::Type::BaseModel # @!attribute code # # @return [String] required :code, String # @!attribute phone_number # # @return [String] required :phone_number, String # @!method initialize(code:, phone_number:) # @param code [String] # @param phone_number [String] end |
Instance Attribute Details
#code ⇒ String
30 |
# File 'lib/telnyx/models/messaging_hosted_number_order_validate_codes_params.rb', line 30 required :code, String |
#phone_number ⇒ String
35 |
# File 'lib/telnyx/models/messaging_hosted_number_order_validate_codes_params.rb', line 35 required :phone_number, String |
Instance Method Details
#to_hash ⇒ { code: String, phone_number: String }
39 |
# File 'sig/telnyx/models/messaging_hosted_number_order_validate_codes_params.rbs', line 39
def to_hash: -> { code: String, phone_number: String }
|