Exception: Dragonfly::Job::FetchUrl::ErrorResponse

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/dragonfly/job/fetch_url.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, body) ⇒ ErrorResponse



12
13
14
# File 'lib/dragonfly/job/fetch_url.rb', line 12

def initialize(status, body)
  @status, @body = status, body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body



15
16
17
# File 'lib/dragonfly/job/fetch_url.rb', line 15

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status



15
16
17
# File 'lib/dragonfly/job/fetch_url.rb', line 15

def status
  @status
end