Class: FormatOpts
- Inherits:
-
Object
- Object
- FormatOpts
- 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
- #city? ⇒ Boolean
- #clubs? ⇒ Boolean
- #country? ⇒ Boolean
- #inline_cards? ⇒ Boolean
- #short? ⇒ Boolean
- #show_stadiums? ⇒ Boolean
- #show_stages? ⇒ Boolean
- #show_teams? ⇒ Boolean
- #stadium? ⇒ Boolean
- #timezone? ⇒ Boolean
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
78 |
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 78 def city?() @city; end |
#clubs? ⇒ Boolean
87 |
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 87 def clubs?() @clubs; end |
#country? ⇒ Boolean
81 |
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 81 def country?() @country; end |
#inline_cards? ⇒ Boolean
83 |
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 83 def inline_cards?() @inline_cards; end |
#short? ⇒ Boolean
85 |
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 85 def short?() @short; end |
#show_stadiums? ⇒ Boolean
90 |
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 90 def show_stadiums?() @show_stadiums; end |
#show_stages? ⇒ Boolean
91 |
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 91 def show_stages?() @show_stages; end |
#show_teams? ⇒ Boolean
89 |
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 89 def show_teams?() @show_teams; end |
#stadium? ⇒ Boolean
79 |
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 79 def stadium?() @stadium; end |
#timezone? ⇒ Boolean
80 |
# File 'lib/fbtxt-pp/pp/ppopts.rb', line 80 def timezone?() @timezone; end |