Class: ImageMongerClient::PdfService

Inherits:
Object
  • Object
show all
Defined in:
lib/image_monger_client/pdf_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_urlObject (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_urlsObject



14
15
16
# File 'lib/image_monger_client/pdf_service.rb', line 14

def pages_as_image_urls
  JSON.parse(converter_response.read)
end