Class: Referee::Shot
Class Method Summary collapse
-
.comments(id) ⇒ Object
Returns all of the comments for the given shot.
-
.info(id) ⇒ Object
Returns information for the given shot.
-
.list(id, options = {}) ⇒ Object
Returns one of the lists (debuts, everyone, popular).
-
.rebounds(id) ⇒ Object
Returns all of the rebounds for the given shot.
Methods included from HTTParty::Icebox
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, ={}) get('/shots/' + id.to_s, :query => ) 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 |