Exception: Dragonfly::Job::FetchUrl::ErrorResponse
- Defined in:
- lib/dragonfly/job/fetch_url.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, body) ⇒ ErrorResponse
constructor
A new instance of ErrorResponse.
Constructor Details
#initialize(status, body) ⇒ ErrorResponse
Returns a new instance of 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
#body ⇒ Object (readonly)
Returns the value of attribute body.
15 16 17 |
# File 'lib/dragonfly/job/fetch_url.rb', line 15 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
15 16 17 |
# File 'lib/dragonfly/job/fetch_url.rb', line 15 def status @status end |