Class: Oldness::CLI
- Inherits:
-
Thor
- Object
- Thor
- Oldness::CLI
- Defined in:
- lib/oldness/cli.rb
Instance Method Summary collapse
Instance Method Details
#first(medium) ⇒ Object
20 21 22 |
# File 'lib/oldness/cli.rb', line 20 def first(medium) print "#{get_class(medium).first}\n" end |
#media ⇒ Object
25 26 27 |
# File 'lib/oldness/cli.rb', line 25 def media print "#{Medium.list(:formatted=>true)}" end |
#ranges(medium) ⇒ Object
14 15 16 |
# File 'lib/oldness/cli.rb', line 14 def ranges(medium) print "#{get_class(medium).ranges(:formatted=>true)}\n" end |
#rate(medium, date) ⇒ Object
8 9 10 |
# File 'lib/oldness/cli.rb', line 8 def rate(medium, date) print "#{get_class(medium).rate(date, :formatted => true)}\n" end |