Class: Cb::Requests::Job::Report
- Inherits:
-
Base
- Object
- Base
- Cb::Requests::Job::Report
show all
- Defined in:
- lib/cb/requests/job/report.rb
Instance Attribute Summary
Attributes inherited from Base
#args
Instance Method Summary
collapse
Methods inherited from Base
#base_uri, #headers, #initialize, #query
Instance Method Details
#body ⇒ Object
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/cb/requests/job/report.rb', line 25
def body
{
developerkey: Cb.configuration.dev_key,
jobDID: args[:jobDID],
userID: args[:userID],
reportType: args[:reportType],
comments: args[:comments],
ipAddress: args[:ipAddress]
}.to_json
end
|
#endpoint_uri ⇒ Object
17
18
19
|
# File 'lib/cb/requests/job/report.rb', line 17
def endpoint_uri
Cb.configuration.uri_report_job
end
|
#http_method ⇒ Object
21
22
23
|
# File 'lib/cb/requests/job/report.rb', line 21
def http_method
:post
end
|