Class: StackOne::Models::Shared::JobPosting
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::JobPosting
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/jobposting.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(compensation: nil, content: nil, created_at: nil, employment_contract_type: nil, employment_type: nil, external_apply_url: nil, external_url: nil, id: nil, internal: nil, job_id: nil, locations: nil, questionnaires: nil, remote_id: nil, remote_job_id: nil, start_date: nil, status: nil, title: nil, unified_custom_fields: nil, updated_at: nil) ⇒ JobPosting
constructor
A new instance of JobPosting.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(compensation: nil, content: nil, created_at: nil, employment_contract_type: nil, employment_type: nil, external_apply_url: nil, external_url: nil, id: nil, internal: nil, job_id: nil, locations: nil, questionnaires: nil, remote_id: nil, remote_job_id: nil, start_date: nil, status: nil, title: nil, unified_custom_fields: nil, updated_at: nil) ⇒ JobPosting
Returns a new instance of JobPosting.
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/stack_one/models/shared/jobposting.rb', line 55 def initialize(compensation: nil, content: nil, created_at: nil, employment_contract_type: nil, employment_type: nil, external_apply_url: nil, external_url: nil, id: nil, internal: nil, job_id: nil, locations: nil, questionnaires: nil, remote_id: nil, remote_job_id: nil, start_date: nil, status: nil, title: nil, unified_custom_fields: nil, updated_at: nil) @compensation = compensation @content = content @created_at = created_at @employment_contract_type = employment_contract_type @employment_type = employment_type @external_apply_url = external_apply_url @external_url = external_url @id = id @internal = internal @job_id = job_id @locations = locations @questionnaires = questionnaires @remote_id = remote_id @remote_job_id = remote_job_id @start_date = start_date @status = status @title = title @unified_custom_fields = unified_custom_fields @updated_at = updated_at end |
Instance Method Details
#==(other) ⇒ Object
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/stack_one/models/shared/jobposting.rb', line 78 def ==(other) return false unless other.is_a? self.class return false unless @compensation == other.compensation return false unless @content == other.content return false unless @created_at == other.created_at return false unless @employment_contract_type == other.employment_contract_type return false unless @employment_type == other.employment_type return false unless @external_apply_url == other.external_apply_url return false unless @external_url == other.external_url return false unless @id == other.id return false unless @internal == other.internal return false unless @job_id == other.job_id return false unless @locations == other.locations return false unless @questionnaires == other.questionnaires return false unless @remote_id == other.remote_id return false unless @remote_job_id == other.remote_job_id return false unless @start_date == other.start_date return false unless @status == other.status return false unless @title == other.title return false unless @unified_custom_fields == other.unified_custom_fields return false unless @updated_at == other.updated_at true end |