Sha256: 040cb11111cd257a4dd707672396771f23b02c78748f8239caa22399d2227cd9
Contents?: true
Size: 977 Bytes
Versions: 4
Compression:
Stored size: 977 Bytes
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 private def self.setup_options(options) {:per_page => 30, :page => 1}.merge(options) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dribble-0.0.31 | lib/dribble/api/player.rb |
dribble-0.0.3 | lib/dribble/api/player.rb |
dribble-0.0.25 | lib/dribble/api/player.rb |
dribble-0.0.2 | lib/dribble/api/player.rb |