Class: Lottery::Command
- Inherits:
-
Thor
- Object
- Thor
- Lottery::Command
- Defined in:
- lib/lottery/command.rb
Instance Method Summary collapse
Instance Method Details
#es(which = 0) ⇒ Object
63 64 65 66 67 68 69 |
# File 'lib/lottery/command.rb', line 63 def es(which = 0) case which.to_i when 1 then puts 'Sunday 5/54+1:'; Lottery::Spain.sunday_5_54_plus1.pprint second_name: 'de matrix' when 2 then puts 'Spanish 6/49:'; Lottery::Spain.spanish_6_49.pprint else puts 'Daily 6/49:'; Lottery::Spain.daily_6_49.pprint end end |
#eu(which = 0) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/lottery/command.rb', line 19 def eu(which = 0) case which.to_i when 1 then puts 'Lotto:'; Lottery::Europe.lotto.pprint when 2 then puts 'Thunderball:'; Lottery::Europe.thunderball.pprint second_name: 'Thunderball number' else puts 'Euro Millions:'; Lottery::Europe.euro_millions.pprint second_name: 'Lucky Stars' end end |
#tw(which = 0) ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'lib/lottery/command.rb', line 43 def tw(which = 0) case which.to_i when 1 then puts '6/49 Lotto:'; Lottery::Taiwan.lotto_649.pprint when 2 then puts 'Daily Cash 539:'; Lottery::Taiwan.daily_cash_539.pprint when 3 then printf "3 stars: %s\n" % Lottery::Taiwan.three_stars when 4 then printf "4 stars: %s\n" % Lottery::Taiwan.four_stars else puts 'Super Lotto 638:'; Lottery::Taiwan.super_lotto_638.pprint first_name: '1st zone', second_name: '2nd zone' end end |