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
58 59 60 61 62 63 64 |
# File 'lib/lottery/command.rb', line 58 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
20 21 22 23 24 25 26 |
# File 'lib/lottery/command.rb', line 20 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
40 41 42 43 44 45 46 |
# File 'lib/lottery/command.rb', line 40 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.pprint else puts 'Super Lotto 638:'; Lottery::Taiwan.super_lotto_638.pprint first_name: '1st zone', second_name: '2nd zone' end end |