Module: RD3

Defined in:
lib/rd3.rb,
lib/rd3/model.rb,
lib/rd3/railtie.rb,
lib/rd3/repository.rb,
lib/rd3/configuration.rb,
lib/rd3/data_providers/rdbms.rb,
lib/rd3/data_providers/azure_table_storage.rb

Overview

require ‘rd3/railtie’ if defined?(Rails) require_rel ‘../lib’ #.reject {|f| railtie.rb}

Defined Under Namespace

Modules: DataProviders, Model, Repository Classes: Configuration, Railtie

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject (readonly)

Returns the value of attribute config.



18
19
20
# File 'lib/rd3.rb', line 18

def config
  @config
end

Class Method Details

.configure(args) ⇒ Object



21
22
23
24
25
26
27
28
29
30
31
# File 'lib/rd3.rb', line 21

def self.configure(args)
  configuration = nil
  unless args.nil? || args.empty?
    configuration = RD3::Configuration.new
    configuration.environment = args[:environment]
    configuration.config_file_directory = args[:config_file_directory]
    configuration.enable_logical_deletes = args[:enable_logical_deletes]
  end
  @config = configuration
  #@config ||= configuration
end