Exception: RailsPdfRenderer::ActionViewHelper::MissingRemoteAsset
- Inherits:
-
MissingAsset
- Object
- StandardError
- MissingAsset
- RailsPdfRenderer::ActionViewHelper::MissingRemoteAsset
- Defined in:
- lib/rails/pdf/renderer/action_view_helper.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, response) ⇒ MissingRemoteAsset
constructor
A new instance of MissingRemoteAsset.
Constructor Details
#initialize(url, response) ⇒ MissingRemoteAsset
Returns a new instance of MissingRemoteAsset.
24 25 26 27 28 |
# File 'lib/rails/pdf/renderer/action_view_helper.rb', line 24 def initialize(url, response) @url = url @response = response super("Could not fetch asset '#{url}': server responded with #{response.code} #{response.}") end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
22 23 24 |
# File 'lib/rails/pdf/renderer/action_view_helper.rb', line 22 def response @response end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
22 23 24 |
# File 'lib/rails/pdf/renderer/action_view_helper.rb', line 22 def url @url end |