Class: Ukemi::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/ukemi/cli.rb

Instance Method Summary collapse

Instance Method Details

#lookup(data) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/ukemi/cli.rb', line 10

def lookup(data)
  data = refang(data)
  set_ordering options["order_by"]

  result = Moderator.lookup(data)
  puts JSON.pretty_generate(result)
end