class MlsStandings::Team

Attributes

games_played[RW]
losses[RW]
name[RW]
ties[RW]
wins[RW]

Public Class Methods

all() click to toggle source
# File lib/mls_standings/team.rb, line 11
def self.all
  @@all
end
create_from_scrape(team) click to toggle source
# File lib/mls_standings/team.rb, line 15
def self.create_from_scrape(team)
  self.new(team)
end
eastern_conf() click to toggle source
# File lib/mls_standings/team.rb, line 19
def self.eastern_conf
  self.all[0..11]
end
new(team_hash) click to toggle source
# File lib/mls_standings/team.rb, line 6
def initialize(team_hash)
  team_hash.each_key{|k| self.send("#{k}=", team_hash[k])}
  @@all << self
end
western_conf() click to toggle source
# File lib/mls_standings/team.rb, line 23
def self.western_conf
  self.all[12..23]
end