Sha256: 2accdbc623026c98858de33fa9730159362e2651d56f99f460c324afcb9a0909

Contents?: true

Size: 706 Bytes

Versions: 8

Compression:

Stored size: 706 Bytes

Contents

require 'faraday_middleware'
require 'itunes/configuration'
require 'itunes/client'

module ITunes
  extend Configuration

  # Alias for ITunes::Client.new
  #
  # @return [ITunes::Client]
  def self.client(options={})
    ITunes::Client.new(options)
  end

  # Alias for ITunes::Client.new
  #
  # @return [ITunes::Client]
  def self.new(options={})
    ITunes::Client.new(options)
  end

  # Delegate to ITunes::Client
  def self.method_missing(method, *args, &block)
    return super unless new.respond_to?(method)
    new.send(method, *args, &block)
  end

  def self.respond_to?(method, include_private = false)
    new.respond_to?(method, include_private) || super(method, include_private)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
itunes-0.7.0 lib/itunes.rb
itunes-0.6.0 lib/itunes.rb
itunes-0.5.5 lib/itunes.rb
itunes-0.5.4 lib/itunes.rb
itunes-0.5.3 lib/itunes.rb
itunes-0.5.2 lib/itunes.rb
itunes-0.5.1 lib/itunes.rb
itunes-0.5.0 lib/itunes.rb