class ScoreScraper::Team
Attributes
abbreviation[R]
city[R]
nickname[R]
score[R]
Public Class Methods
new(attrs)
click to toggle source
# File lib/score_scraper/team.rb, line 5 def initialize(attrs) @city = attrs[:city] || '' @nickname = attrs[:nickname] || '' @abbreviation = attrs[:abbreviation] || 'NIL' @score = attrs[:score] || 0 end