Module: Zendesk::Printer

Defined in:
lib/zendesk/printer.rb,
lib/zendesk/printer/json.rb,
lib/zendesk/printer/table.rb

Defined Under Namespace

Modules: Json, Table

Class Method Summary collapse

Class Method Details

.get(printer_string) ⇒ Object



10
11
12
13
14
# File 'lib/zendesk/printer.rb', line 10

def get(printer_string)
  const_get printer_string.classify
rescue NameError => e
  raise Zendesk::Error, "unknown printer '#{printer_string}'"
end