Sha256: e78e66af1c9cfb2671d07fc985e970de22934115b0c3f948d42da96db01e7187
Contents?: true
Size: 471 Bytes
Versions: 1
Compression:
Stored size: 471 Bytes
Contents
require 'thor' require 'whos_dated_who' module WhosDatedWho class CLI < Thor desc "version", "Return the version of WhosDatedWho" def version puts WhosDatedWho::VERSION end desc "query", "Return the relationship status of a celebrity" def query(name) result = Client.new.fetch(name) puts "#{result[:status]}: #{result[:current_relationship][:human]}" puts result[:current_relationship][:dates].join(", ") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whos_dated_who-0.0.1 | lib/whos_dated_who/cli.rb |