Sha256: 73fde2d6f1a1e5af36f12faf102845934f01a242ab901d21493e7d617285919a
Contents?: true
Size: 527 Bytes
Versions: 4
Compression:
Stored size: 527 Bytes
Contents
module MLBGameday class Team attr_reader :id, :name, :city, :league, :division, :names, :code, :file_code def initialize(opts = {}) @id = opts[:id] @name = opts[:name] @city = opts[:city] @league = opts[:league] @division = opts[:division] @names = opts[:names] @code = opts[:code] @file_code = opts[:file_code] end # So we don't get huge printouts def inspect %(#<MLBGameday::Team @name="#{@name}">) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mlb_gameday-0.1.3 | lib/mlb_gameday/team.rb |
mlb_gameday-0.1.2 | lib/mlb_gameday/team.rb |
mlb_gameday-0.1.1 | lib/mlb_gameday/team.rb |
mlb_gameday-0.1.0 | lib/mlb_gameday/team.rb |