Module: Dynamoid

Extended by:
Dynamoid
Included in:
Dynamoid
Defined in:
lib/dynamoid/fields.rb,
lib/dynamoid.rb,
lib/dynamoid/dirty.rb,
lib/dynamoid/config.rb,
lib/dynamoid/errors.rb,
lib/dynamoid/adapter.rb,
lib/dynamoid/finders.rb,
lib/dynamoid/indexes.rb,
lib/dynamoid/railtie.rb,
lib/dynamoid/version.rb,
lib/dynamoid/criteria.rb,
lib/dynamoid/document.rb,
lib/dynamoid/components.rb,
lib/dynamoid/persistence.rb,
lib/dynamoid/validations.rb,
lib/dynamoid/associations.rb,
lib/dynamoid/identity_map.rb,
lib/dynamoid/config/options.rb,
lib/dynamoid/criteria/chain.rb,
lib/dynamoid/tasks/database.rb,
lib/dynamoid/associations/has_one.rb,
lib/dynamoid/associations/has_many.rb,
lib/dynamoid/associations/belongs_to.rb,
lib/dynamoid/middleware/identity_map.rb,
lib/dynamoid/associations/association.rb,
lib/dynamoid/adapter_plugin/aws_sdk_v2.rb,
lib/dynamoid/associations/many_association.rb,
lib/dynamoid/associations/single_association.rb,
lib/dynamoid/associations/has_and_belongs_to_many.rb,
lib/dynamoid/config/backoff_strategies/constant_backoff.rb,
lib/dynamoid/config/backoff_strategies/exponential_backoff.rb

Overview

:nodoc:

Defined Under Namespace

Modules: AdapterPlugin, Associations, Components, Config, Criteria, Dirty, Document, Errors, Fields, Finders, IdentityMap, Indexes, Middleware, Persistence, Tasks, Validations Classes: Adapter, Railtie

Constant Summary collapse

VERSION =
'2.2.0'

Instance Method Summary collapse

Instance Method Details

#adapterObject


52
53
54
# File 'lib/dynamoid.rb', line 52

def adapter
  @adapter ||= Adapter.new
end

#configureObject Also known as: config


39
40
41
# File 'lib/dynamoid.rb', line 39

def configure
  block_given? ? yield(Dynamoid::Config) : Dynamoid::Config
end

#included_modelsObject


48
49
50
# File 'lib/dynamoid.rb', line 48

def included_models
  @included_models ||= []
end

#loggerObject


44
45
46
# File 'lib/dynamoid.rb', line 44

def logger
  Dynamoid::Config.logger
end