Class: Clerk::Models::Operations::ReplaceUserPhoneNumberRequestBody

Inherits:
Object
  • Object
show all
Includes:
Crystalline::MetadataFields
Defined in:
lib/clerk/models/operations/replaceuserphonenumber_requestbody.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(phone_number:, identification_status: Models::Operations::ReplaceUserPhoneNumberIdentificationStatus::VERIFIED) ⇒ ReplaceUserPhoneNumberRequestBody

Returns a new instance of ReplaceUserPhoneNumberRequestBody.



23
24
25
26
# File 'lib/clerk/models/operations/replaceuserphonenumber_requestbody.rb', line 23

def initialize(phone_number:, identification_status: Models::Operations::ReplaceUserPhoneNumberIdentificationStatus::VERIFIED)
  @phone_number = phone_number
  @identification_status = identification_status
end

Instance Method Details

#==(other) ⇒ Object



29
30
31
32
33
34
# File 'lib/clerk/models/operations/replaceuserphonenumber_requestbody.rb', line 29

def ==(other)
  return false unless other.is_a? self.class
  return false unless @phone_number == other.phone_number
  return false unless @identification_status == other.identification_status
  true
end