Exception: WickedPdf::WickedPdfHelper::Assets::MissingRemoteAsset
- Inherits:
-
MissingAsset
- Object
- StandardError
- MissingAsset
- WickedPdf::WickedPdfHelper::Assets::MissingRemoteAsset
- Defined in:
- lib/wicked_pdf/wicked_pdf_helper/assets.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/wicked_pdf/wicked_pdf_helper/assets.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/wicked_pdf/wicked_pdf_helper/assets.rb', line 22 def response @response end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
22 23 24 |
# File 'lib/wicked_pdf/wicked_pdf_helper/assets.rb', line 22 def url @url end |