Class: WhatsOn::Football

Inherits:
Tool
  • Object
show all
Defined in:
lib/whatson/football.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Tool

#list

Constructor Details

#initialize(args = ARGV) ⇒ Football

Returns a new instance of Football.



9
10
11
12
13
14
15
16
17
# File 'lib/whatson/football.rb', line 9

def initialize( args=ARGV )
  args = ['https://github.com/footballbook/calendar/raw/master/README.md']  if args.empty?

  super( args,
         title:     'Upcoming Football Tournaments',
         more_link: 'github.com/footballbook/calendar',
         show_year: true    ## e.g. World Cup 2020 etc.
       )
end

Class Method Details

.mainObject



6
# File 'lib/whatson/football.rb', line 6

def self.main()   new( ARGV ).list;   end