Module: Bubbles

Defined in:
lib/bubbles.rb,
lib/bubbles/config.rb,
lib/bubbles/version.rb,
lib/bubbles/endpoint.rb,
lib/bubbles/rest_environment.rb,
lib/bubbles/rest_client_resources.rb

Defined Under Namespace

Classes: Configuration, Endpoint, Resources, RestClientResources, RestEnvironment, VersionInformation

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



31
32
33
# File 'lib/bubbles/config.rb', line 31

def self.configuration
  @configuration ||= Configuration.new
end

Class Method Details

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

Configure the Bubbles instance.

Use this method if you want to configure the Bubbles instance, typically during initialization of your Gem or application.

Examples:

In app/config/initializers/bubbles.rb

Bubbles.configure do |config|
  config.endpoints = [
    {
      :type => :get,
      :location => :version,
      :authenticated => false,
      :api_key_required => false
    }
  ]
end

Yields:



27
28
29
# File 'lib/bubbles/config.rb', line 27

def self.configure
  yield(configuration)
end