Class: StackOne::Models::Shared::EmploymentJob
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::EmploymentJob
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/employment_job.rb
Overview
The job of employee
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(description: nil, id: nil, owner_id: nil, parent_id: nil, remote_id: nil, title: nil) ⇒ EmploymentJob
constructor
A new instance of EmploymentJob.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(description: nil, id: nil, owner_id: nil, parent_id: nil, remote_id: nil, title: nil) ⇒ EmploymentJob
Returns a new instance of EmploymentJob.
29 30 31 32 33 34 35 36 |
# File 'lib/stack_one/models/shared/employment_job.rb', line 29 def initialize(description: nil, id: nil, owner_id: nil, parent_id: nil, remote_id: nil, title: nil) @description = description @id = id @owner_id = owner_id @parent_id = parent_id @remote_id = remote_id @title = title end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/stack_one/models/shared/employment_job.rb', line 39 def ==(other) return false unless other.is_a? self.class return false unless @description == other.description return false unless @id == other.id return false unless @owner_id == other.owner_id return false unless @parent_id == other.parent_id return false unless @remote_id == other.remote_id return false unless @title == other.title true end |