Sha256: 10820383df733c9b4067ce93ef5362f83a047929549ea23ba7eba5808b4c08ee

Contents?: true

Size: 345 Bytes

Versions: 3

Compression:

Stored size: 345 Bytes

Contents

module SportsDataApi
  module Ncaafb
    class Player
      def initialize(json)
        player_ivar = self.instance_variable_set("@player", {})
        self.class.class_eval { attr_reader :"player" }
        json.each_pair do | attr_name, attr_value|
          player_ivar[attr_name.to_sym] = attr_value
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sports_data_api-0.2.4 lib/sports_data_api/ncaafb/player.rb
sports_data_api-0.2.3 lib/sports_data_api/ncaafb/player.rb
sports_data_api-0.2.2 lib/sports_data_api/ncaafb/player.rb