Class: StackOne::Models::Shared::Position

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/stack_one/models/shared/position.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(department_id: nil, description: nil, employment_type: nil, id: nil, job_id: nil, location_id: nil, posted_date: nil, remote_id: nil, status: nil, title: nil) ⇒ Position

Returns a new instance of Position.



37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/stack_one/models/shared/position.rb', line 37

def initialize(department_id: nil, description: nil, employment_type: nil, id: nil, job_id: nil, location_id: nil, posted_date: nil, remote_id: nil, status: nil, title: nil)
  @department_id = department_id
  @description = description
  @employment_type = employment_type
  @id = id
  @job_id = job_id
  @location_id = location_id
  @posted_date = posted_date
  @remote_id = remote_id
  @status = status
  @title = title
end

Instance Method Details

#==(other) ⇒ Object



51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/stack_one/models/shared/position.rb', line 51

def ==(other)
  return false unless other.is_a? self.class
  return false unless @department_id == other.department_id
  return false unless @description == other.description
  return false unless @employment_type == other.employment_type
  return false unless @id == other.id
  return false unless @job_id == other.job_id
  return false unless @location_id == other.location_id
  return false unless @posted_date == other.posted_date
  return false unless @remote_id == other.remote_id
  return false unless @status == other.status
  return false unless @title == other.title
  true
end