Class: Shrine::Plugins::Transloadit::ResponseError
- Defined in:
- lib/shrine/plugins/transloadit.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(response) ⇒ ResponseError
Returns a new instance of ResponseError.
15 16 17 18 |
# File 'lib/shrine/plugins/transloadit.rb', line 15 def initialize(response) @response = response super("#{response["error"]}: #{response["reason"] || response["message"]}") end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
13 14 15 |
# File 'lib/shrine/plugins/transloadit.rb', line 13 def response @response end |