Sha256: 202ef1392ba0442834d7ee34268ec9c075547d851762aba375afa57f2a0fff04

Contents?: true

Size: 323 Bytes

Versions: 11

Compression:

Stored size: 323 Bytes

Contents

module SportsDataApi
  module Mlb
    class Division < JsonData
      def teams
        @teams ||= division[:teams].map do |data|
          Team.new(data).tap do |t|
            t.team[:division] = division[:name]
            t.team[:division_alias] = division[:alias]
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sports_data_api-0.15.1 lib/sports_data_api/mlb/division.rb
sports_data_api-0.15.0 lib/sports_data_api/mlb/division.rb
sports_data_api-0.14.1 lib/sports_data_api/mlb/division.rb
sports_data_api-0.14.0 lib/sports_data_api/mlb/division.rb
sports_data_api-0.13.0 lib/sports_data_api/mlb/division.rb
sports_data_api-0.12.1 lib/sports_data_api/mlb/division.rb
sports_data_api-0.12.0 lib/sports_data_api/mlb/division.rb
sports_data_api-0.11.6 lib/sports_data_api/mlb/division.rb
sports_data_api-0.11.5 lib/sports_data_api/mlb/division.rb
sports_data_api-0.11.3 lib/sports_data_api/mlb/division.rb
sports_data_api-0.11.2 lib/sports_data_api/mlb/division.rb