Sha256: 8bd49a1e9ba759738cd3b77a01fb669a453e8797c1e217a8f404046c474ef2b0

Contents?: true

Size: 509 Bytes

Versions: 2

Compression:

Stored size: 509 Bytes

Contents

require 'itunes_api/configuration'
require 'itunes_api/requests/all'
require 'itunes_api/music/all'

# Interface to the Itunes Api
module ItunesApi
  BASE_URL = 'https://itunes.apple.com'.freeze
  LIMIT = 200

  def self.artist_ids(name)
    Requests::Search.artist_ids(name)
  end

  def self.artist_lookup(artist_id)
    Music::ArtistLookup.artist(artist_id)
  end

  def self.artist_search(name)
    Music::ArtistSearch.artists(name)
  end

  def self.configure
    yield(Configuration.instance)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
itunes_api-0.7.0 lib/itunes_api.rb
itunes_api-0.6.0 lib/itunes_api.rb