Class: IndeedJobsearch::SearchResult
- Inherits:
-
Object
- Object
- IndeedJobsearch::SearchResult
- Defined in:
- lib/indeed_jobsearch/search_result.rb
Instance Attribute Summary collapse
-
#company ⇒ Object
readonly
Returns the value of attribute company.
-
#job_title ⇒ Object
readonly
Returns the value of attribute job_title.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#time_scraped ⇒ Object
readonly
Returns the value of attribute time_scraped.
-
#time_since_posting ⇒ Object
readonly
Returns the value of attribute time_since_posting.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(job_title:, company:, location:, time_since_posting:, time_scraped:, url:) ⇒ SearchResult
constructor
A new instance of SearchResult.
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
#company ⇒ Object (readonly)
Returns the value of attribute company.
3 4 5 |
# File 'lib/indeed_jobsearch/search_result.rb', line 3 def company @company end |
#job_title ⇒ Object (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 |
#location ⇒ Object (readonly)
Returns the value of attribute location.
3 4 5 |
# File 'lib/indeed_jobsearch/search_result.rb', line 3 def location @location end |
#time_scraped ⇒ Object (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_posting ⇒ Object (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 |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/indeed_jobsearch/search_result.rb', line 3 def url @url end |