Class: Referee::Shot

Inherits:
Base
  • Object
show all
Defined in:
lib/referee/shot.rb

Class Method Summary collapse

Methods included from HTTParty::Icebox

included

Class Method Details

.comments(id) ⇒ Object

Returns all of the comments for the given shot. GET /shots/:id/comments



28
29
30
# File 'lib/referee/shot.rb', line 28

def self.comments(id)
  get('/shots/' + id.to_s + '/comments')
end

.info(id) ⇒ Object

Returns information for the given shot. GET /shots/:id



10
11
12
# File 'lib/referee/shot.rb', line 10

def self.info(id)
  get('/shots/' + id.to_s)
end

.list(id, options = {}) ⇒ Object

Returns one of the lists (debuts, everyone, popular). Supports pagination. GET /shots/:list



16
17
18
# File 'lib/referee/shot.rb', line 16

def self.list(id, options={})
  get('/shots/' + id.to_s, :query => options)
end

.rebounds(id) ⇒ Object

Returns all of the rebounds for the given shot. GET /shots/:id/rebounds



22
23
24
# File 'lib/referee/shot.rb', line 22

def self.rebounds(id)
  get('/shots/' + id.to_s + '/rebounds')
end