Module: Heathen::Client::Interface

Included in:
Heathen::Client
Defined in:
lib/heathen/client/interface.rb

Instance Method Summary collapse

Instance Method Details

#convert(action, options) ⇒ Object



17
18
19
# File 'lib/heathen/client/interface.rb', line 17

def convert(action, options)
  client.convert(action, options)
end

#doc(args = { }) ⇒ Object



9
10
11
# File 'lib/heathen/client/interface.rb', line 9

def doc(args = { })
  convert(:doc, shared_args(args))
end

#ocr(args = { }) ⇒ Object



13
14
15
# File 'lib/heathen/client/interface.rb', line 13

def ocr(args = { })
  convert(:ocr, shared_args(args).merge(language: args.fetch(:language)))
end

#pdf(args = { }) ⇒ Object



5
6
7
# File 'lib/heathen/client/interface.rb', line 5

def pdf(args = { })
  convert(:pdf, shared_args(args))
end