Sha256: cab5163aa3846f8807b1b8a815208a2d227e69cb96bef88c0847dc3b4f72b862

Contents?: true

Size: 285 Bytes

Versions: 3

Compression:

Stored size: 285 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

3 entries across 3 versions & 1 rubygems

Version Path
score-scraper-0.1.2 lib/score_scraper/team.rb
score-scraper-0.1.1 lib/score_scraper/team.rb
score-scraper-0.1.0 lib/score_scraper/team.rb