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/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/indexes/index.rb,
lib/dynamoid/config/options.rb,
lib/dynamoid/criteria/chain.rb,
lib/dynamoid/adapter/aws_sdk.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/associations/many_association.rb,
lib/dynamoid/associations/single_association.rb,
lib/dynamoid/associations/has_and_belongs_to_many.rb

Overview

:nodoc:

Defined Under Namespace

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

Constant Summary collapse

MAX_ITEM_SIZE =
65_536

Instance Method Summary collapse

Instance Method Details

#configureObject Also known as: config



33
34
35
36
# File 'lib/dynamoid.rb', line 33

def configure
  block_given? ? yield(Dynamoid::Config) : Dynamoid::Config
  Dynamoid::Adapter.reconnect!
end

#included_modelsObject



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

def included_models
  @included_models ||= []
end

#loggerObject



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

def logger
  Dynamoid::Config.logger
end