Class: Sports::NationalTeam
Constant Summary
Constants included from SportDb::NameHelper
SportDb::NameHelper::LANG_RE, SportDb::NameHelper::NORM_RE, SportDb::NameHelper::YEAR_RE
Instance Attribute Summary
Attributes inherited from Team
#alt_names, #alt_names_auto, #code, #country, #key, #name, #wikipedia, #year, #year_end
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ NationalTeam
constructor
A new instance of NationalTeam.
- #update(**kwargs) ⇒ Object
Methods inherited from Team
#add_variants, #duplicates, #duplicates?, #historic?, #names, #wikipedia?, #wikipedia_url
Methods included from SportDb::NameHelper
#has_lang?, #has_year?, #normalize, #sanitize, #strip_lang, #strip_norm, #strip_year, #variants
Constructor Details
#initialize(**kwargs) ⇒ NationalTeam
Returns a new instance of NationalTeam.
102 103 104 |
# File 'lib/sports/structs/team.rb', line 102 def initialize( **kwargs ) super end |
Instance Method Details
#update(**kwargs) ⇒ Object
106 107 108 109 |
# File 'lib/sports/structs/team.rb', line 106 def update( **kwargs ) super self ## note - MUST return self for chaining end |