Class: GustoEmbedded::Models::Shared::Results
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::Results
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/results.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(external_id: nil, role: nil, status: nil, idx: nil, uuid: nil, employee_uuid: nil, errors: nil) ⇒ Results
constructor
A new instance of Results.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(external_id: nil, role: nil, status: nil, idx: nil, uuid: nil, employee_uuid: nil, errors: nil) ⇒ Results
Returns a new instance of Results.
31 32 33 34 35 36 37 38 39 |
# File 'lib/gusto_embedded/models/shared/results.rb', line 31 def initialize(external_id: nil, role: nil, status: nil, idx: nil, uuid: nil, employee_uuid: nil, errors: nil) @external_id = external_id @role = role @status = status @idx = idx @uuid = uuid @employee_uuid = employee_uuid @errors = errors end |
Instance Method Details
#==(other) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/gusto_embedded/models/shared/results.rb', line 42 def ==(other) return false unless other.is_a? self.class return false unless @external_id == other.external_id return false unless @role == other.role return false unless @status == other.status return false unless @idx == other.idx return false unless @uuid == other.uuid return false unless @employee_uuid == other.employee_uuid return false unless @errors == other.errors true end |