class FanartApi::Client
Attributes
config[R]
Public Class Methods
new(config = {})
click to toggle source
# File lib/fanart_api/client.rb, line 4 def initialize(config = {}) @config = config @config[:adapter] ||= :net_http end
Public Instance Methods
movie()
click to toggle source
# File lib/fanart_api/client.rb, line 10 def movie @movie ||= FanartApi::Movie.new(config) end
music()
click to toggle source
# File lib/fanart_api/client.rb, line 14 def music @music ||= FanartApi::Music.new(config) end
tv()
click to toggle source
# File lib/fanart_api/client.rb, line 18 def tv @tv ||= FanartApi::Tv.new(config) end