Sha256: 9441b3b50735b34d06c053f9bef379125f09ce7d65c1fb348335016947dc3e9c

Contents?: true

Size: 635 Bytes

Versions: 19

Compression:

Stored size: 635 Bytes

Contents

module SportsDataApi
  module Nfl
    class Venue
      attr_reader :id, :name, :address, :city, :state, :zip, :country, :capacity, :type, :surface
      def initialize(venue_hash)
        if venue_hash
          @id = venue_hash['id']
          @name = venue_hash['name']
          @address = venue_hash['address']
          @city = venue_hash['city']
          @state = venue_hash['state']
          @zip = venue_hash['zip']
          @country = venue_hash['country']
          @capacity = venue_hash['capacity']
          @type = venue_hash['type']
          @surface = venue_hash['surface']
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
sports_data_api-0.14.1 lib/sports_data_api/nfl/venue.rb
sports_data_api-0.14.0 lib/sports_data_api/nfl/venue.rb
sports_data_api-0.13.0 lib/sports_data_api/nfl/venue.rb
sports_data_api-0.12.1 lib/sports_data_api/nfl/venue.rb
sports_data_api-0.12.0 lib/sports_data_api/nfl/venue.rb
sports_data_api-0.11.6 lib/sports_data_api/nfl/venue.rb
sports_data_api-0.11.5 lib/sports_data_api/nfl/venue.rb
sports_data_api-0.11.3 lib/sports_data_api/nfl/venue.rb
sports_data_api-0.11.2 lib/sports_data_api/nfl/venue.rb
sports_data_api-0.11.1 lib/sports_data_api/nfl/venue.rb
sports_data_api-0.11.0 lib/sports_data_api/nfl/venue.rb
sports_data_api-0.10.1 lib/sports_data_api/nfl/venue.rb
sports_data_api-0.10.0 lib/sports_data_api/nfl/venue.rb
sports_data_api-0.9.2 lib/sports_data_api/nfl/venue.rb
sports_data_api-0.2.4 lib/sports_data_api/nfl/venue.rb
sports_data_api-0.2.3 lib/sports_data_api/nfl/venue.rb
sports_data_api-0.2.2 lib/sports_data_api/nfl/venue.rb
sports_data_api-0.2.1 lib/sports_data_api/nfl/venue.rb
sports_data_api-0.2.0 lib/sports_data_api/nfl/venue.rb