Class: Moov::Models::Components::RepresentativeValidationErrorError
- Inherits:
-
Object
- Object
- Moov::Models::Components::RepresentativeValidationErrorError
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/representativevalidationerror_error.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name: nil, phone: nil, email: nil, address: nil, birth_date: nil, government_id: nil, responsibilities: nil) ⇒ RepresentativeValidationErrorError
constructor
A new instance of RepresentativeValidationErrorError.
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) ⇒ RepresentativeValidationErrorError
Returns a new instance of RepresentativeValidationErrorError.
32 33 34 35 36 37 38 39 40 |
# File 'lib/moov/models/components/representativevalidationerror_error.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/representativevalidationerror_error.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 |