Class: Moov::Models::Components::CreateIndividualProfile

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/createindividualprofile.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(name:, phone: nil, email: nil, address: nil, birth_date: nil, government_id: nil) ⇒ CreateIndividualProfile

Returns a new instance of CreateIndividualProfile.



30
31
32
33
34
35
36
37
# File 'lib/moov/models/components/createindividualprofile.rb', line 30

def initialize(name:, phone: nil, email: nil, address: nil, birth_date: nil, government_id: nil)
  @name = name
  @phone = phone
  @email = email
  @address = address
  @birth_date = birth_date
  @government_id = government_id
end

Instance Method Details

#==(other) ⇒ Object



40
41
42
43
44
45
46
47
48
49
# File 'lib/moov/models/components/createindividualprofile.rb', line 40

def ==(other)
  return false unless other.is_a? self.class
  return false unless @name == other.name
  return false unless @phone == other.phone
  return false unless @email == other.email
  return false unless @address == other.address
  return false unless @birth_date == other.birth_date
  return false unless @government_id == other.government_id
  true
end