Class: FanartApi::Music
Overview
documentation: fanart.tv/api-docs/music-api
Instance Method Summary collapse
Methods inherited from Base
#get, #initialize, #params, #prepare_uri, #response, #restful_param_keys, #shared_uri, #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) get('newmusic/{api_key}/{timestamp}').params(timestamp: ).response end |