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

.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, options={})
  get('/shots/' + id.to_s, :query => options)
end