Class: IndeedJobsearch::SearchResult

Inherits:
Object
  • Object
show all
Defined in:
lib/indeed_jobsearch/search_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(job_title:, company:, location:, time_since_posting:, time_scraped:, url:) ⇒ SearchResult

Returns a new instance of SearchResult.



4
5
6
# File 'lib/indeed_jobsearch/search_result.rb', line 4

def initialize(job_title:, company:, location:, time_since_posting:, time_scraped:, url:)
  @job_title, @company, @location, @time_since_posting, @time_scraped, @url = job_title, company, location, time_since_posting, time_scraped, url
end

Instance Attribute Details

#companyObject (readonly)

Returns the value of attribute company.



3
4
5
# File 'lib/indeed_jobsearch/search_result.rb', line 3

def company
  @company
end

#job_titleObject (readonly)

Returns the value of attribute job_title.



3
4
5
# File 'lib/indeed_jobsearch/search_result.rb', line 3

def job_title
  @job_title
end

#locationObject (readonly)

Returns the value of attribute location.



3
4
5
# File 'lib/indeed_jobsearch/search_result.rb', line 3

def location
  @location
end

#time_scrapedObject (readonly)

Returns the value of attribute time_scraped.



3
4
5
# File 'lib/indeed_jobsearch/search_result.rb', line 3

def time_scraped
  @time_scraped
end

#time_since_postingObject (readonly)

Returns the value of attribute time_since_posting.



3
4
5
# File 'lib/indeed_jobsearch/search_result.rb', line 3

def time_since_posting
  @time_since_posting
end

#urlObject (readonly)

Returns the value of attribute url.



3
4
5
# File 'lib/indeed_jobsearch/search_result.rb', line 3

def url
  @url
end