Sha256: 881a6054d80e9031a76103e6efc7cd4ce25b71911d51794e27701a7a64239d34

Contents?: true

Size: 957 Bytes

Versions: 1

Compression:

Stored size: 957 Bytes

Contents

# Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
#     http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.

require 'aws/simple_db'
require 'aws/record/scope'

module AWS
  module Record

    module OptimisticLocking

      def optimistic_locking attribute_name = :version_id
        attribute = integer_attr(attribute_name)
        @optimistic_locking_attr = attribute
      end

      # @private
      def optimistic_locking_attr
        @optimistic_locking_attr
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aws-sdk-1.2.6 lib/aws/record/optimistic_locking.rb