class Aws::Record::KeyAttributes

@api private

Attributes

keys[R]

Public Class Methods

new(model_attributes) click to toggle source
# File lib/aws-record/record/key_attributes.rb, line 21
def initialize(model_attributes)
  @keys = {}
  @model_attributes = model_attributes
end

Public Instance Methods

hash_key() click to toggle source
# File lib/aws-record/record/key_attributes.rb, line 26
def hash_key
  @hash_key
end
hash_key=(value) click to toggle source
# File lib/aws-record/record/key_attributes.rb, line 42
def hash_key=(value)
  @keys[:hash] = value
  @hash_key = value
end
hash_key_attribute() click to toggle source
# File lib/aws-record/record/key_attributes.rb, line 30
def hash_key_attribute
  @model_attributes.attribute_for(hash_key)
end
range_key() click to toggle source
# File lib/aws-record/record/key_attributes.rb, line 34
def range_key
  @range_key
end
range_key=(value) click to toggle source
# File lib/aws-record/record/key_attributes.rb, line 47
def range_key=(value)
  @keys[:range] = value
  @range_key = value
end
range_key_attribute() click to toggle source
# File lib/aws-record/record/key_attributes.rb, line 38
def range_key_attribute
  @model_attributes.attribute_for(range_key)
end