Class: SportDb::Import::TeamReader::Team
- Inherits:
-
Object
- Object
- SportDb::Import::TeamReader::Team
- Defined in:
- lib/sportdb/config/team_reader.rb
Overview
note: use our own (internal) team struct for now - why? why not?
- check that shape/structure/fields/attributes match
the Team struct in sportdb-text (in SportDb::Struct::Team) !!!!
Instance Attribute Summary collapse
-
#alt_names ⇒ Object
todo: use just names for alt_names - why? why not?.
-
#city ⇒ Object
todo: use just names for alt_names - why? why not?.
-
#district ⇒ Object
more attribs - todo/fix - also add “upstream” to struct & model!!!!!.
-
#geos ⇒ Object
more attribs - todo/fix - also add “upstream” to struct & model!!!!!.
-
#ground ⇒ Object
todo: use just names for alt_names - why? why not?.
-
#name ⇒ Object
todo: use just names for alt_names - why? why not?.
-
#year ⇒ Object
todo: use just names for alt_names - why? why not?.
-
#year_end ⇒ Object
more attribs - todo/fix - also add “upstream” to struct & model!!!!!.
Instance Method Summary collapse
- #historic? ⇒ Boolean (also: #past?)
-
#initialize ⇒ Team
constructor
A new instance of Team.
Constructor Details
#initialize ⇒ Team
Returns a new instance of Team.
25 26 27 28 |
# File 'lib/sportdb/config/team_reader.rb', line 25 def initialize @alt_names = [] @year_end = nil end |
Instance Attribute Details
#alt_names ⇒ Object
todo: use just names for alt_names - why? why not?
16 17 18 |
# File 'lib/sportdb/config/team_reader.rb', line 16 def alt_names @alt_names end |
#city ⇒ Object
todo: use just names for alt_names - why? why not?
16 17 18 |
# File 'lib/sportdb/config/team_reader.rb', line 16 def city @city end |
#district ⇒ Object
more attribs - todo/fix - also add “upstream” to struct & model!!!!!
19 20 21 |
# File 'lib/sportdb/config/team_reader.rb', line 19 def district @district end |
#geos ⇒ Object
more attribs - todo/fix - also add “upstream” to struct & model!!!!!
19 20 21 |
# File 'lib/sportdb/config/team_reader.rb', line 19 def geos @geos end |
#ground ⇒ Object
todo: use just names for alt_names - why? why not?
16 17 18 |
# File 'lib/sportdb/config/team_reader.rb', line 16 def ground @ground end |
#name ⇒ Object
todo: use just names for alt_names - why? why not?
16 17 18 |
# File 'lib/sportdb/config/team_reader.rb', line 16 def name @name end |
#year ⇒ Object
todo: use just names for alt_names - why? why not?
16 17 18 |
# File 'lib/sportdb/config/team_reader.rb', line 16 def year @year end |
#year_end ⇒ Object
more attribs - todo/fix - also add “upstream” to struct & model!!!!!
19 20 21 |
# File 'lib/sportdb/config/team_reader.rb', line 19 def year_end @year_end end |
Instance Method Details
#historic? ⇒ Boolean Also known as: past?
21 |
# File 'lib/sportdb/config/team_reader.rb', line 21 def historic?() @year_end.nil? == false; end |