Sha256: 37231a1d72d155fed1f6b576a457a0b0214c54d0576312f618caa390b8bf3d74

Contents?: true

Size: 192 Bytes

Versions: 7

Compression:

Stored size: 192 Bytes

Contents

# frozen_string_literal: true

module MlbRb
  class Team
    attr_reader :id, :name
    def initialize(team_hash)
      @id = team_hash["id"]
      @name = team_hash["name"]
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mlb_rb-0.0.9 lib/mlb_rb/team.rb
mlb_rb-0.0.8 lib/mlb_rb/team.rb
mlb_rb-0.0.7 lib/mlb_rb/team.rb
mlb_rb-0.0.5 lib/mlb_rb/team.rb
mlb_rb-0.0.4 lib/mlb_rb/team.rb
mlb_rb-0.0.3 lib/mlb_rb/team.rb
mlb_rb-0.0.2 lib/mlb_rb/team.rb