Class: FanartApi::Tv
Overview
documentation: fanart.tv/api-docs/tv-api
Instance Method Summary collapse
- #find(id, type = 'all', sort = '1', limit = '2') ⇒ Object
- #update(timestamp = (Time.now - 172800).to_i) ⇒ Object
Methods inherited from Base
#api_key, #initialize, #shared_uri
Constructor Details
This class inherits a constructor from FanartApi::Base
Instance Method Details
#find(id, type = 'all', sort = '1', limit = '2') ⇒ Object
3 4 5 |
# File 'lib/fanart_api/tv.rb', line 3 def find(id, type = 'all', sort = '1', limit = '2') self.class.get("series#{shared_uri(id, type, sort, limit)}") end |
#update(timestamp = (Time.now - 172800).to_i) ⇒ Object
7 8 9 |
# File 'lib/fanart_api/tv.rb', line 7 def update( = (Time.now - 172800).to_i) self.class.get("newtv/#{api_key}/#{timestamp}") end |