Module: Sovren

Defined in:
lib/generators/sovren/install/install_generator.rb,
lib/sovren.rb,
lib/sovren/client.rb,
lib/sovren/version.rb,
lib/sovren/configuration.rb

Overview

Creates the Sovren initializer file for Rails apps.

Examples:

Invokation from terminal

rails generate sovren ACCOUNT_ID SERVICE_KEY

Defined Under Namespace

Classes: Client, Configuration, InstallGenerator

Constant Summary collapse

VERSION =
"0.1.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



3
4
5
# File 'lib/sovren/configuration.rb', line 3

def configuration
  @configuration
end

Class Method Details

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

Yields:



6
7
8
9
# File 'lib/sovren/configuration.rb', line 6

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end