class Pdftable::Client

Attributes

connection[R]

Public Class Methods

new(connection = nil ) click to toggle source
# File lib/pdftable/client.rb, line 6
def initialize(connection = nil )
        @connection = connection || Pdftable::Connection.new
end

Public Instance Methods

convert(file_path, format: 'xml') click to toggle source
# File lib/pdftable/client.rb, line 10
          def convert(file_path, format: 'xml')
path = "/api"
connection.post(path, file: file_path, format: format)
          end
remaining_pages() click to toggle source
# File lib/pdftable/client.rb, line 15
          def remaining_pages
                  path = "/api/remaining"
connection.get(path)
          end