Module AWS::Record
In: lib/aws/record.rb
lib/aws/record/validations.rb
lib/aws/record/errors.rb
lib/aws/record/scope.rb
lib/aws/record/hash_model.rb
lib/aws/record/model.rb
lib/aws/record/exceptions.rb
lib/aws/record/conversion.rb
lib/aws/record/validators/confirmation.rb
lib/aws/record/validators/method.rb
lib/aws/record/validators/acceptance.rb
lib/aws/record/validators/presence.rb
lib/aws/record/validators/inclusion.rb
lib/aws/record/validators/numericality.rb
lib/aws/record/validators/block.rb
lib/aws/record/validators/format.rb
lib/aws/record/validators/length.rb
lib/aws/record/validators/count.rb
lib/aws/record/validators/exclusion.rb
lib/aws/record/attributes.rb
lib/aws/record/validator.rb
lib/aws/record/hash_model/finder_methods.rb
lib/aws/record/hash_model/scope.rb
lib/aws/record/hash_model/attributes.rb
lib/aws/record/abstract_base.rb
lib/aws/record/naming.rb
lib/aws/record/dirty_tracking.rb
lib/aws/record/model/finder_methods.rb
lib/aws/record/model/scope.rb
lib/aws/record/model/attributes.rb

AWS::Record is an ORM built on top of AWS services.

Methods

Classes and Modules

Module AWS::Record::AbstractBase
Module AWS::Record::Attributes
Module AWS::Record::Conversion
Module AWS::Record::DirtyTracking
Module AWS::Record::Naming
Module AWS::Record::Validations
Class AWS::Record::AcceptanceValidator
Class AWS::Record::BlockValidator
Class AWS::Record::ConfirmationValidator
Class AWS::Record::CountValidator
Class AWS::Record::EmptyRecordError
Class AWS::Record::Errors
Class AWS::Record::ExclusionValidator
Class AWS::Record::FormatValidator
Class AWS::Record::HashModel
Class AWS::Record::InclusionValidator
Class AWS::Record::InvalidRecordError
Class AWS::Record::LengthValidator
Class AWS::Record::MethodValidator
Class AWS::Record::Model
Class AWS::Record::NumericalityValidator
Class AWS::Record::PresenceValidator
Class AWS::Record::RecordNotFound
Class AWS::Record::Scope
Class AWS::Record::UndefinedAttributeError
Class AWS::Record::Validator

Constants

Base = Model   for backwards compatability with the old AWS::Record::Base

Public Class methods

A utility method for casting values into an array.

  • nil is returned as an empty array, []
  • Arrays are returned unmodified
  • Everything else is returned as the sole element of an array

@param [Object] value @return [Array] The value cast into an array @api private

A utility method for casting values into

  • Sets are returned unmodified
  • everything else is passed through #{as_array} and then into a new Set

@param [Object] value @return [Set] The value cast into a Set. @api private

@return [String,nil] The string that is prepended to all domain names.

Sets a prefix to be applied to all SimpleDB domains associated with AWS::Record::Base classes.

    AWS::Record.domain_prefix = 'production_'

    class Product < AWS::Record::Base
      set_shard_name 'products'
    end

    p = Product.new
    p.shard #=> 'products'
    p.save # the product is persisted to the 'production-products' domain

@param [String] prefix A prefix to append to all domains. This is useful

  for grouping domains used by one application with a single prefix.

@return [String,nil] The string that is prepended to all table names.

Sets a prefix to be applied to all DynamoDB tables associated with {AWS::Record::HashModel} and {AWS::Record::ListModel} classes.

    AWS::Record.table_prefix = 'production_'

    class Product < AWS::Record::HashModel
      set_shard_name 'products'
    end

    p = Product.new
    p.shard #=> 'products'
    p.save # the product is persisted to the 'production-products' table

@param [String] prefix A prefix to append to all tables. This is

  useful for grouping tables used by one application with a
  single prefix.

[Validate]