Class: FanartApi::Music

Inherits:
Base
  • Object
show all
Defined in:
lib/fanart_api/music.rb

Overview

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(timestamp = (Time.now - 172800).to_i)
  get('newmusic/{api_key}/{timestamp}').params(timestamp: timestamp).response
end