Class: Referee::Shot
Class Method Summary collapse
-
.info(id) ⇒ Object
Returns information for the given shot.
-
.list(id, options = {}) ⇒ Object
Returns one of the lists (debuts, everyone, popular).
Methods included from HTTParty::Icebox
Class Method Details
.info(id) ⇒ Object
Returns information for the given shot.
9 10 11 |
# File 'lib/referee/shot.rb', line 9 def self.info(id) get('/shots/' + id.to_s) end |
.list(id, options = {}) ⇒ Object
Returns one of the lists (debuts, everyone, popular). Supports pagination.
14 15 16 |
# File 'lib/referee/shot.rb', line 14 def self.list(id, ={}) get('/shots/' + id.to_s, :query => ) end |