Class: ImageMongerClient::PdfService
- Inherits:
-
Object
- Object
- ImageMongerClient::PdfService
- Defined in:
- lib/image_monger_client/pdf_service.rb
Instance Attribute Summary collapse
-
#pdf_url ⇒ Object
readonly
Returns the value of attribute pdf_url.
Instance Method Summary collapse
-
#initialize(pdf_url) ⇒ PdfService
constructor
A new instance of PdfService.
- #pages_as_image_urls ⇒ Object
Constructor Details
#initialize(pdf_url) ⇒ PdfService
Returns a new instance of PdfService.
10 11 12 |
# File 'lib/image_monger_client/pdf_service.rb', line 10 def initialize(pdf_url) @pdf_url = pdf_url end |
Instance Attribute Details
#pdf_url ⇒ Object (readonly)
Returns the value of attribute pdf_url.
8 9 10 |
# File 'lib/image_monger_client/pdf_service.rb', line 8 def pdf_url @pdf_url end |
Instance Method Details
#pages_as_image_urls ⇒ Object
14 15 16 |
# File 'lib/image_monger_client/pdf_service.rb', line 14 def pages_as_image_urls JSON.parse(converter_response.read) end |