Sha256: 9f8786b0eba17f1e7fb64bcba6346648cb5f9eca1a72e288138550b837f37611
Contents?: true
Size: 1.48 KB
Versions: 3
Compression:
Stored size: 1.48 KB
Contents
module Dribble module API class Player ## # Find shots for a given player # # @param [String/Integer] # @return [Hash] # @api public # def self.find_shots(id, options={}) Dribble::Request.get("/players/#{id}/shots", setup_options(options)) end ## # Following Shots # # @param [String/Integer] # @return [Hash] # @api public # def self.following_shots(id, options={}) Dribble::Request.get("/players/#{id}/shots/following", setup_options(options)) end ## # Profile # # @param [String/Integer] # @return [Hash] # @api public # def self.profile(id) Dribble::Request.get("/players/#{id}") end ## # Followers # # @param [String/Integer] # @return [Hash] # @api public # def self.followers(id, options={}) Dribble::Request.get("/players/#{id}/followers", setup_options(options)) end ## # Followers # # @param [String/Integer] # @return [Hash] # @api public # def self.draftees(id, options={}) Dribble::Request.get("/players/#{id}/draftees", setup_options(options)) end private def self.setup_options(options) {:per_page => 30, :page => 1}.merge(options) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dribble-0.1.2 | lib/dribble/api/player.rb |
dribble-0.1.1 | lib/dribble/api/player.rb |
dribble-0.1.0 | lib/dribble/api/player.rb |