Module: Dynamoid

Extended by:
Dynamoid
Included in:
Dynamoid
Defined in:
lib/dynamoid/persistence.rb,
lib/dynamoid.rb,
lib/dynamoid/dirty.rb,
lib/dynamoid/config.rb,
lib/dynamoid/errors.rb,
lib/dynamoid/fields.rb,
lib/dynamoid/adapter.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/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/inc.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/criteria/where_conditions.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/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/adapter_plugin/aws_sdk_v3/middleware/limit.rb,
lib/dynamoid/config/backoff_strategies/constant_backoff.rb,
lib/dynamoid/adapter_plugin/aws_sdk_v3/execute_statement.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,
lib/dynamoid/adapter_plugin/aws_sdk_v3/filter_expression_convertor.rb,
lib/dynamoid/adapter_plugin/aws_sdk_v3/projection_expression_convertor.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.10.0'

Instance Method Summary collapse

Instance Method Details

#adapterObject



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

def adapter
  @adapter ||= Adapter.new
end

#configureObject Also known as: config



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

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

#included_modelsObject



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

def included_models
  @included_models ||= []
end

#loggerObject



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

def logger
  Dynamoid::Config.logger
end