Class: Moov::Models::Components::UpdateRepresentative

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

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

Returns a new instance of UpdateRepresentative.



32
33
34
35
36
37
38
39
40
# File 'lib/moov/models/components/updaterepresentative.rb', line 32

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

Instance Method Details

#==(other) ⇒ Object



43
44
45
46
47
48
49
50
51
52
53
# File 'lib/moov/models/components/updaterepresentative.rb', line 43

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
  return false unless @responsibilities == other.responsibilities
  true
end