Class: Pingo::CLI

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

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(model_name) ⇒ Object (private)



15
16
17
# File 'lib/pingo/cli.rb', line 15

def method_missing(model_name)
  pingo(model_name.to_s)
end

Instance Method Details

#pingo(model_name) ⇒ Object



13
14
15
# File 'lib/pingo/cli/pingo.rb', line 13

def pingo(model_name)
  Client.run(model_name)
end

#versionObject



10
11
12
# File 'lib/pingo/cli.rb', line 10

def version
  puts VERSION
end