class Sports::Club
more attribs - todo/fix - also add “upstream” to struct & model!!!!!
district, geos, year_end, country, etc.
Attributes
a[RW]
b[RW]
city[W]
note: delegate/forward all geo attributes for team b for now (to team a) - keep - why? why not?
district[W]
note: delegate/forward all geo attributes for team b for now (to team a) - keep - why? why not?
geos[W]
note: delegate/forward all geo attributes for team b for now (to team a) - keep - why? why not?
ground[RW]
Public Class Methods
new( **kwargs )
click to toggle source
Calls superclass method
Sports::Team::new
# File lib/sportdb/structs/structs/team.rb, line 133 def initialize( **kwargs ) super end
Public Instance Methods
a?()
click to toggle source
# File lib/sportdb/structs/structs/team.rb, line 122 def a?() @a == nil; end
b?()
click to toggle source
# File lib/sportdb/structs/structs/team.rb, line 123 def b?() @a != nil; end
city()
click to toggle source
# File lib/sportdb/structs/structs/team.rb, line 127 def city() @a == nil ? @city : @a.city; end
country()
click to toggle source
# File lib/sportdb/structs/structs/team.rb, line 129 def country() @a == nil ? @country : @a.country; end
district()
click to toggle source
# File lib/sportdb/structs/structs/team.rb, line 128 def district() @a == nil ? @district : @a.district; end
geos()
click to toggle source
# File lib/sportdb/structs/structs/team.rb, line 130 def geos() @a == nil ? @geos : @a.geos; end
update( **kwargs )
click to toggle source
Calls superclass method
Sports::Team#update
# File lib/sportdb/structs/structs/team.rb, line 137 def update( **kwargs ) super @city = kwargs[:city] if kwargs.has_key? :city ## todo/fix: use city struct - why? why not? ## todo/fix: add country too or report unused keywords / attributes - why? why not? self ## note - MUST return self for chaining end