Module: InsoundApi

Defined in:
lib/insound_api.rb,
lib/insound_api/query.rb,
lib/insound_api/artist.rb,
lib/insound_api/config.rb,
lib/insound_api/product.rb,
lib/insound_api/request.rb,
lib/insound_api/results.rb,
lib/insound_api/response.rb

Defined Under Namespace

Classes: Artist, Config, ConfigException, Product, Query, Request, RequestException, Response, Results

Class Method Summary collapse

Class Method Details

.configObject



24
25
26
27
28
29
30
# File 'lib/insound_api.rb', line 24

def self.config
  if @config
    @config
  else
    raise ConfigException, ConfigException::EXCEPTION_TEXT
  end
end

.search(params) ⇒ Object



37
38
39
# File 'lib/insound_api.rb', line 37

def self.search(params)
  Query.search(params)
end

.setup {|@config| ... } ⇒ Object

Yields:



32
33
34
35
# File 'lib/insound_api.rb', line 32

def self.setup(&block)
  @config = Config.new
  yield @config
end