Module: Dynamoid

Extended by:
Dynamoid
Included in:
Dynamoid
Defined in:
lib/dynamoid/adapter.rb,
lib/dynamoid.rb,
lib/dynamoid/dirty.rb,
lib/dynamoid/config.rb,
lib/dynamoid/errors.rb,
lib/dynamoid/fields.rb,
lib/dynamoid/dumping.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/loadable.rb,
lib/dynamoid/undumping.rb,
lib/dynamoid/components.rb,
lib/dynamoid/persistence.rb,
lib/dynamoid/validations.rb,
lib/dynamoid/associations.rb,
lib/dynamoid/identity_map.rb,
lib/dynamoid/type_casting.rb,
lib/dynamoid/log/formatter.rb,
lib/dynamoid/config/options.rb,
lib/dynamoid/criteria/chain.rb,
lib/dynamoid/fields/declare.rb,
lib/dynamoid/tasks/database.rb,
lib/dynamoid/persistence/save.rb,
lib/dynamoid/dynamodb_time_zone.rb,
lib/dynamoid/persistence/import.rb,
lib/dynamoid/persistence/upsert.rb,
lib/dynamoid/associations/has_one.rb,
lib/dynamoid/application_time_zone.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/primary_key_type_mapping.rb,
lib/dynamoid/adapter_plugin/aws_sdk_v3.rb,
lib/dynamoid/persistence/update_fields.rb,
lib/dynamoid/criteria/key_fields_detector.rb,
lib/dynamoid/associations/many_association.rb,
lib/dynamoid/adapter_plugin/aws_sdk_v3/scan.rb,
lib/dynamoid/persistence/update_validations.rb,
lib/dynamoid/adapter_plugin/aws_sdk_v3/query.rb,
lib/dynamoid/adapter_plugin/aws_sdk_v3/table.rb,
lib/dynamoid/associations/single_association.rb,
lib/dynamoid/associations/has_and_belongs_to_many.rb,
lib/dynamoid/criteria/ignored_conditions_detector.rb,
lib/dynamoid/criteria/nonexistent_fields_detector.rb,
lib/dynamoid/adapter_plugin/aws_sdk_v3/create_table.rb,
lib/dynamoid/adapter_plugin/aws_sdk_v3/item_updater.rb,
lib/dynamoid/adapter_plugin/aws_sdk_v3/batch_get_item.rb,
lib/dynamoid/criteria/overwritten_conditions_detector.rb,
lib/dynamoid/adapter_plugin/aws_sdk_v3/middleware/limit.rb,
lib/dynamoid/config/backoff_strategies/constant_backoff.rb,
lib/dynamoid/adapter_plugin/aws_sdk_v3/middleware/backoff.rb,
lib/dynamoid/config/backoff_strategies/exponential_backoff.rb,
lib/dynamoid/adapter_plugin/aws_sdk_v3/middleware/start_key.rb,
lib/dynamoid/adapter_plugin/aws_sdk_v3/until_past_table_status.rb

Overview

Shamelessly stolen from Mongoid!

Defined Under Namespace

Modules: AdapterPlugin, ApplicationTimeZone, Associations, Components, Config, Criteria, Dirty, Document, Dumping, DynamodbTimeZone, Errors, Fields, Finders, IdentityMap, Indexes, Loadable, Log, Middleware, Persistence, Tasks, TypeCasting, Undumping, Validations Classes: Adapter, PrimaryKeyTypeMapping, Railtie

Constant Summary collapse

VERSION =
'3.7.1'

Instance Method Summary collapse

Instance Method Details

#adapterObject


61
62
63
# File 'lib/dynamoid.rb', line 61

def adapter
  @adapter ||= Adapter.new
end

#configureObject Also known as: config


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

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

#included_modelsObject


56
57
58
# File 'lib/dynamoid.rb', line 56

def included_models
  @included_models ||= []
end

#loggerObject


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

def logger
  Dynamoid::Config.logger
end