Module: Adtraction::Api

Defined in:
lib/adtraction/api.rb,
lib/adtraction/api/client.rb,
lib/adtraction/api/version.rb,
lib/adtraction/api/constants.rb,
lib/adtraction/api/configuration.rb,
lib/adtraction/api/models/channel.rb,
lib/adtraction/api/models/program.rb,
lib/adtraction/api/affiliate/channels.rb,
lib/adtraction/api/affiliate/programs.rb,
lib/generators/adtraction/api/install_generator.rb

Defined Under Namespace

Modules: Affiliate, Constants, Generators, Models Classes: Client, Configuration, Error, InvalidApiKeyError

Constant Summary collapse

VERSION =
"0.1.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



28
29
30
# File 'lib/adtraction/api.rb', line 28

def self.configuration
  @configuration ||= ::Adtraction::Api::Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



36
37
38
# File 'lib/adtraction/api.rb', line 36

def self.configure
  yield(configuration)
end

.resetObject



32
33
34
# File 'lib/adtraction/api.rb', line 32

def self.reset
  @configuration = ::Adtraction::Api::Configuration.new
end