Class: Aws::Record::KeyAttributes Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-record/record/key_attributes.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model_attributes) ⇒ KeyAttributes

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of KeyAttributes.



10
11
12
13
# File 'lib/aws-record/record/key_attributes.rb', line 10

def initialize(model_attributes)
  @keys = {}
  @model_attributes = model_attributes
end

Instance Attribute Details

#keysObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



8
9
10
# File 'lib/aws-record/record/key_attributes.rb', line 8

def keys
  @keys
end

Instance Method Details

#hash_keyObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



15
16
17
# File 'lib/aws-record/record/key_attributes.rb', line 15

def hash_key
  @hash_key
end

#hash_key=(value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



31
32
33
34
# File 'lib/aws-record/record/key_attributes.rb', line 31

def hash_key=(value)
  @keys[:hash] = value
  @hash_key = value
end

#hash_key_attributeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



19
20
21
# File 'lib/aws-record/record/key_attributes.rb', line 19

def hash_key_attribute
  @model_attributes.attribute_for(hash_key)
end

#range_keyObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



23
24
25
# File 'lib/aws-record/record/key_attributes.rb', line 23

def range_key
  @range_key
end

#range_key=(value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



36
37
38
39
# File 'lib/aws-record/record/key_attributes.rb', line 36

def range_key=(value)
  @keys[:range] = value
  @range_key = value
end

#range_key_attributeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



27
28
29
# File 'lib/aws-record/record/key_attributes.rb', line 27

def range_key_attribute
  @model_attributes.attribute_for(range_key)
end