class Sports::League
Attributes
alt_names[RW]
alt_names_auto[RW]
special import only attribs
country[R]
intl[R]
key[R]
name[R]
Public Class Methods
new( key:, name:, alt_names: [], alt_names_auto: [], country: nil, intl: false, clubs: true )
click to toggle source
# File lib/sportdb/structs/structs/league.rb, line 12 def initialize( key:, name:, alt_names: [], alt_names_auto: [], country: nil, intl: false, clubs: true ) @key = key @name = name @alt_names = alt_names @alt_names_auto = alt_names_auto @country = country @intl = intl @clubs = clubs end
Public Instance Methods
clubs?()
click to toggle source
# File lib/sportdb/structs/structs/league.rb, line 28 def clubs?() @clubs == true; end
Also aliased as: club?
intl?()
click to toggle source
# File lib/sportdb/structs/structs/league.rb, line 24 def intl?() @intl == true; end
national?()
click to toggle source
# File lib/sportdb/structs/structs/league.rb, line 25 def national?() @intl == false; end
Also aliased as: domestic?
national_teams?()
click to toggle source
# File lib/sportdb/structs/structs/league.rb, line 29 def national_teams?() @clubs == false; end
Also aliased as: national_team?