Class: FormatOpts

Inherits:
Object
  • Object
show all
Defined in:
lib/fbtxt-pp/pp/ppopts.rb

Overview

change format to opts for entities (time/team/etc.) - why? why not? use - time: timezone - venue/ground/stadium: city|stadium - team: country

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.build(**kwargs) ⇒ Object



26
27
28
29
30
31
32
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 26

def self.build( **kwargs )
   new( **{ city:     true,
            stadium:  true,
            timezone: true,
            country:  false,
          }.merge( kwargs ))
end

.build_full(**kwargs) ⇒ Object



34
35
36
37
38
39
40
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 34

def self.build_full( **kwargs )
   new( **{ city:     true,
            stadium:  true,
            timezone: true,
            country:  false,
          }.merge( kwargs))
end

.build_min(**kwargs) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 18

def self.build_min( **kwargs )
   new( **{ city:     false,
            stadium:  false,
            timezone: false,
            country:  false,
          }.merge( kwargs ))
end

Instance Method Details

#city?Boolean

Returns:

  • (Boolean)


78
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 78

def city?()     @city; end

#clubs?Boolean

Returns:

  • (Boolean)


87
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 87

def clubs?() @clubs; end

#country?Boolean

Returns:

  • (Boolean)


81
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 81

def country?()  @country; end

#inline_cards?Boolean

Returns:

  • (Boolean)


83
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 83

def inline_cards?() @inline_cards; end

#short?Boolean

Returns:

  • (Boolean)


85
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 85

def short?() @short; end

#show_stadiums?Boolean

Returns:

  • (Boolean)


90
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 90

def show_stadiums?()  @show_stadiums;  end

#show_stages?Boolean

Returns:

  • (Boolean)


91
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 91

def show_stages?()    @show_stages;  end

#show_teams?Boolean

Returns:

  • (Boolean)


89
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 89

def show_teams?()     @show_teams;  end

#stadium?Boolean

Returns:

  • (Boolean)


79
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 79

def stadium?()  @stadium; end

#timezone?Boolean

Returns:

  • (Boolean)


80
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 80

def timezone?() @timezone; end