Class: Cb::Requests::JobSearch::Get
- Defined in:
- lib/cb/requests/job_search/get.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Attributes inherited from Base
Instance Method Summary collapse
- #endpoint_uri ⇒ Object
- #headers ⇒ Object
- #http_method ⇒ Object
-
#initialize(argument_hash, token) ⇒ Get
constructor
A new instance of Get.
- #query ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(argument_hash, token) ⇒ Get
Returns a new instance of Get.
17 18 19 20 |
# File 'lib/cb/requests/job_search/get.rb', line 17 def initialize(argument_hash, token) super(argument_hash) @token = token end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
15 16 17 |
# File 'lib/cb/requests/job_search/get.rb', line 15 def token @token end |
Instance Method Details
#endpoint_uri ⇒ Object
22 23 24 |
# File 'lib/cb/requests/job_search/get.rb', line 22 def endpoint_uri Cb.configuration.uri_job_search end |
#headers ⇒ Object
30 31 32 33 34 35 |
# File 'lib/cb/requests/job_search/get.rb', line 30 def headers { 'HostSite' => args[:host_site] || args[:HostSite] || Cb.configuration.host_site, 'Accept' => 'application/json;version=3.0' }.merge(token.headers) end |
#http_method ⇒ Object
26 27 28 |
# File 'lib/cb/requests/job_search/get.rb', line 26 def http_method :get end |
#query ⇒ Object
37 38 39 |
# File 'lib/cb/requests/job_search/get.rb', line 37 def query args end |