Class: NeverBounce::API::Request::JobsStatus

Inherits:
Base
  • Object
show all
Defined in:
lib/never_bounce/api/request/jobs_status.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

#auto_startBoolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/never_bounce/api/request/jobs_status.rb', line 12

def auto_start
  @auto_start
end

#job_idInteger

Returns:

  • (Integer)


9
10
11
# File 'lib/never_bounce/api/request/jobs_status.rb', line 9

def job_id
  @job_id
end

Class Method Details

.http_methodSymbol

Returns:

  • (Symbol)


15
16
17
# File 'lib/never_bounce/api/request/jobs_status.rb', line 15

def self.http_method
  :get
end

.pathString

Returns:

  • (String)


20
21
22
# File 'lib/never_bounce/api/request/jobs_status.rb', line 20

def self.path
  "jobs/status"
end

.response_klassResponse::JobsStatus



25
26
27
# File 'lib/never_bounce/api/request/jobs_status.rb', line 25

def self.response_klass
  Response::JobsStatus
end

Instance Method Details

#to_hHash

Returns:

  • (Hash)


30
31
32
33
34
35
# File 'lib/never_bounce/api/request/jobs_status.rb', line 30

def to_h
  {
    job_id: require_attr(:job_id),
    key: require_attr(:api_key),
  }
end