Class: Dribble::API::Player

Inherits:
Object show all
Defined in:
lib/dribble/api/player.rb

Class Method Summary collapse

Class Method Details

.draftees(id, options = {}) ⇒ Hash

Followers

Parameters:

  • (String/Integer)

Returns:



62
63
64
# File 'lib/dribble/api/player.rb', line 62

def draftees(id, options={})
  Dribble::Request.get("/players/#{id}/draftees", setup_options(options))
end

.find_shots(id, options = {}) ⇒ Hash

Find shots for a given player

Parameters:

  • (String/Integer)

Returns:



13
14
15
# File 'lib/dribble/api/player.rb', line 13

def find_shots(id, options={})
  Dribble::Request.get("/players/#{id}/shots", setup_options(options))
end

.followers(id, options = {}) ⇒ Hash

Followers

Parameters:

  • (String/Integer)

Returns:



49
50
51
# File 'lib/dribble/api/player.rb', line 49

def followers(id, options={})
  Dribble::Request.get("/players/#{id}/followers", setup_options(options))
end

.following_shots(id, options = {}) ⇒ Hash

Following Shots

Parameters:

  • (String/Integer)

Returns:



25
26
27
# File 'lib/dribble/api/player.rb', line 25

def following_shots(id, options={})
  Dribble::Request.get("/players/#{id}/shots/following", setup_options(options))
end

.profile(id) ⇒ Hash

Profile

Parameters:

  • (String/Integer)

Returns:



37
38
39
# File 'lib/dribble/api/player.rb', line 37

def profile(id)
  Dribble::Request.get("/players/#{id}")
end