Class: Moov::Models::Components::IndividualProfile

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

Overview

Describes an individual.

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_provided: nil, government_id_provided: nil) ⇒ IndividualProfile

Returns a new instance of IndividualProfile.



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

def initialize(name:, phone: nil, email: nil, address: nil, birth_date_provided: nil, government_id_provided: nil)
  @name = name
  @phone = phone
  @email = email
  @address = address
  @birth_date_provided = birth_date_provided
  @government_id_provided = government_id_provided
end

Instance Method Details

#==(other) ⇒ Object



40
41
42
43
44
45
46
47
48
49
# File 'lib/moov/models/components/individualprofile.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_provided == other.birth_date_provided
  return false unless @government_id_provided == other.government_id_provided
  true
end