Class: FanartApi::Music

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

Overview

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(timestamp = (Time.now - 172800).to_i)
  self.class.get("newmusic/#{api_key}/#{timestamp}")
end