Class: FanartApi::Music
Overview
documentation: fanart.tv/api-docs/music-api
Instance Method Summary collapse
Methods inherited from Base
#api_key, #initialize, #shared_uri
Constructor Details
This class inherits a constructor from FanartApi::Base
Instance Method Details
#update(timestamp = (Time.now - 172800).to_i) ⇒ Object
9 10 11 |
# File 'lib/fanart_api/music.rb', line 9 def update( = (Time.now - 172800).to_i) self.class.get("newmusic/#{api_key}/#{timestamp}") end |