Module: WurflCloud

Defined in:
lib/wurfl_cloud/errors.rb,
lib/wurfl_cloud.rb,
lib/wurfl_cloud/rails.rb,
lib/wurfl_cloud/client.rb,
lib/wurfl_cloud/helper.rb,
lib/wurfl_cloud/version.rb,
lib/wurfl_cloud/cache/null.rb,
lib/wurfl_cloud/cache/rails.rb,
lib/wurfl_cloud/environment.rb,
lib/wurfl_cloud/cache/cookie.rb,
lib/wurfl_cloud/configuration.rb,
lib/wurfl_cloud/cache/memcached.rb,
lib/wurfl_cloud/cache/local_memory.rb,
lib/wurfl_cloud/device_capabilities.rb

Overview

Copyright © 2015 ScientiaMobile Inc.

The WURFL Cloud Client is intended to be used in both open-source and commercial environments. To allow its use in as many situations as possible, the WURFL Cloud Client is dual-licensed. You may choose to use the WURFL Cloud Client under either the GNU GENERAL PUBLIC LICENSE, Version 2.0, or the MIT License.

Refer to the COPYING.txt file distributed with this package.

Defined Under Namespace

Modules: Cache, Errors, Helper, Rack Classes: Client, Configuration, DeviceCapabilities, Engine, Environment

Constant Summary collapse

VERSION =
"1.1.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

The configuration object.

See Also:



41
42
43
# File 'lib/wurfl_cloud.rb', line 41

def configuration
  @configuration ||= WurflCloud::Configuration.new
end

Class Method Details

.configure(silent = false) {|configuration| ... } ⇒ Object

Call this method to modify defaults in your initializers.

Examples:

WurflCloud.configure do |config|
  config.api_key = '00000000:xxxxxxxxxxxxxxxxxxxxxxxxxxx'
  config.host  = 'api.wurflcloud.com'
end

Yields:



35
36
37
# File 'lib/wurfl_cloud.rb', line 35

def configure(silent = false)
  yield(configuration)
end