Module: Majestic::Api

Defined in:
lib/majestic/api.rb,
lib/majestic/api/client.rb,
lib/majestic/api/logger.rb,
lib/majestic/api/version.rb,
lib/majestic/api/response.rb,
lib/majestic/api/item_info.rb,
lib/majestic/api/exceptions.rb,
lib/majestic/api/configuration.rb,
lib/majestic/api/item_info_response.rb,
lib/generators/majestic/api/install_generator.rb

Defined Under Namespace

Modules: Generators, Logger Classes: Client, Configuration, InsufficientIndexItemInfoUnitsException, ItemInfo, ItemInfoResponse, Response

Constant Summary collapse

VERSION =
"1.4.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



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

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

Class Method Details

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

Yields:



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

def self.configure
  yield(configuration)
end

.resetObject



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

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