Class: StackOne::Models::Shared::WorkEligibility
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::WorkEligibility
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/workeligibility.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(document: nil, id: nil, issued_by: nil, number: nil, remote_id: nil, sub_type: nil, type: nil, valid_from: nil, valid_to: nil) ⇒ WorkEligibility
constructor
A new instance of WorkEligibility.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(document: nil, id: nil, issued_by: nil, number: nil, remote_id: nil, sub_type: nil, type: nil, valid_from: nil, valid_to: nil) ⇒ WorkEligibility
Returns a new instance of WorkEligibility.
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/stack_one/models/shared/workeligibility.rb', line 35 def initialize(document: nil, id: nil, issued_by: nil, number: nil, remote_id: nil, sub_type: nil, type: nil, valid_from: nil, valid_to: nil) @document = document @id = id @issued_by = issued_by @number = number @remote_id = remote_id @sub_type = sub_type @type = type @valid_from = valid_from @valid_to = valid_to end |
Instance Method Details
#==(other) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/stack_one/models/shared/workeligibility.rb', line 48 def ==(other) return false unless other.is_a? self.class return false unless @document == other.document return false unless @id == other.id return false unless @issued_by == other.issued_by return false unless @number == other.number return false unless @remote_id == other.remote_id return false unless @sub_type == other.sub_type return false unless @type == other.type return false unless @valid_from == other.valid_from return false unless @valid_to == other.valid_to true end |