Class: NeverBounce::API::Request::JobsDelete
- Inherits:
-
Base
- Object
- Base
- NeverBounce::API::Request::JobsDelete
show all
- Defined in:
- lib/never_bounce/api/request/jobs_delete.rb
Instance Attribute Summary collapse
Attributes inherited from Base
#api_key, #api_url, #api_version, #headers, #user_agent
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#to_curl, #to_httparty
Instance Attribute Details
#job_id ⇒ Integer
9
10
11
|
# File 'lib/never_bounce/api/request/jobs_delete.rb', line 9
def job_id
@job_id
end
|
Class Method Details
.http_method ⇒ Symbol
12
13
14
|
# File 'lib/never_bounce/api/request/jobs_delete.rb', line 12
def self.http_method
:post
end
|
.path ⇒ String
17
18
19
|
# File 'lib/never_bounce/api/request/jobs_delete.rb', line 17
def self.path
"jobs/delete"
end
|
.response_klass ⇒ Response::Jobs::Delete
22
23
24
|
# File 'lib/never_bounce/api/request/jobs_delete.rb', line 22
def self.response_klass
Response::JobsDelete
end
|
Instance Method Details
#to_h ⇒ Hash
27
28
29
30
31
32
|
# File 'lib/never_bounce/api/request/jobs_delete.rb', line 27
def to_h
{
job_id: require_attr(:job_id),
key: require_attr(:api_key),
}
end
|