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