Exception: WickedPdf::WickedPdfHelper::Assets::MissingRemoteAsset

Inherits:
MissingAsset
  • Object
show all
Defined in:
lib/wicked_pdf/wicked_pdf_helper/assets.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.message}")
end

Instance Attribute Details

#responseObject (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

#urlObject (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