Class: Kombo::Models::Shared::JobPosting

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id:, remote_id: nil, title: nil, description_html: nil, status: nil, visibility: nil, url: nil) ⇒ JobPosting

Returns a new instance of JobPosting.



31
32
33
34
35
36
37
38
39
# File 'lib/kombo/models/shared/job_posting.rb', line 31

def initialize(id:, remote_id: nil, title: nil, description_html: nil, status: nil, visibility: nil, url: nil)
  @id = id
  @remote_id = remote_id
  @title = title
  @description_html = description_html
  @status = status
  @visibility = visibility
  @url = url
end

Instance Method Details

#==(other) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/kombo/models/shared/job_posting.rb', line 42

def ==(other)
  return false unless other.is_a? self.class
  return false unless @id == other.id
  return false unless @remote_id == other.remote_id
  return false unless @title == other.title
  return false unless @description_html == other.description_html
  return false unless @status == other.status
  return false unless @visibility == other.visibility
  return false unless @url == other.url
  true
end