Sha256: 911215575738a50d6ceab89482b256704a22409de055adedbd62da5c066cda07
Contents?: true
Size: 313 Bytes
Versions: 2
Compression:
Stored size: 313 Bytes
Contents
module ScoreScraper class Team attr_reader :city, :nickname, :abbreviation, :score def initialize(attrs) @city = attrs[:city] || '' @nickname = attrs[:nickname] || '' @abbreviation = attrs[:abbreviation] || 'NIL' @score = attrs[:score] || 0 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
score-scraper-0.1.4 | lib/score_scraper/team.rb |
score-scraper-0.1.3 | lib/score_scraper/team.rb |