Class: ResumeCopilot::JobSearchRequest
- Inherits:
-
Object
- Object
- ResumeCopilot::JobSearchRequest
- Defined in:
- lib/resume_copilot/job_search_request.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#company_name ⇒ Object
Returns the value of attribute company_name.
-
#country ⇒ Object
Returns the value of attribute country.
-
#is_remote ⇒ Object
Returns the value of attribute is_remote.
-
#size ⇒ Object
Returns the value of attribute size.
-
#state ⇒ Object
Returns the value of attribute state.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title:, company_name: nil, city: nil, state: nil, country: nil, is_remote: nil, size: 10) ⇒ JobSearchRequest
constructor
A new instance of JobSearchRequest.
- #to_json(*_args) ⇒ Object
Constructor Details
#initialize(title:, company_name: nil, city: nil, state: nil, country: nil, is_remote: nil, size: 10) ⇒ JobSearchRequest
Returns a new instance of JobSearchRequest.
7 8 9 10 11 12 13 14 15 |
# File 'lib/resume_copilot/job_search_request.rb', line 7 def initialize(title:, company_name: nil, city: nil, state: nil, country: nil, is_remote: nil, size: 10) @title = title @company_name = company_name @city = city @state = state @country = country @is_remote = is_remote @size = size end |
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
5 6 7 |
# File 'lib/resume_copilot/job_search_request.rb', line 5 def city @city end |
#company_name ⇒ Object
Returns the value of attribute company_name.
5 6 7 |
# File 'lib/resume_copilot/job_search_request.rb', line 5 def company_name @company_name end |
#country ⇒ Object
Returns the value of attribute country.
5 6 7 |
# File 'lib/resume_copilot/job_search_request.rb', line 5 def country @country end |
#is_remote ⇒ Object
Returns the value of attribute is_remote.
5 6 7 |
# File 'lib/resume_copilot/job_search_request.rb', line 5 def is_remote @is_remote end |
#size ⇒ Object
Returns the value of attribute size.
5 6 7 |
# File 'lib/resume_copilot/job_search_request.rb', line 5 def size @size end |
#state ⇒ Object
Returns the value of attribute state.
5 6 7 |
# File 'lib/resume_copilot/job_search_request.rb', line 5 def state @state end |
#title ⇒ Object
Returns the value of attribute title.
5 6 7 |
# File 'lib/resume_copilot/job_search_request.rb', line 5 def title @title end |
Instance Method Details
#to_json(*_args) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/resume_copilot/job_search_request.rb', line 17 def to_json(*_args) { title: @title, companyName: @company_name, city: @city, state: @state, country: @country, isRemote: @is_remote, size: @size }.compact.to_json end |