Class: Aws::Record::KeyAttributes Private
- Inherits:
-
Object
- Object
- Aws::Record::KeyAttributes
- 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
- #keys ⇒ Object readonly private
Instance Method Summary collapse
- #hash_key ⇒ Object private
- #hash_key=(value) ⇒ Object private
- #hash_key_attribute ⇒ Object private
-
#initialize(model_attributes) ⇒ KeyAttributes
constructor
private
A new instance of KeyAttributes.
- #range_key ⇒ Object private
- #range_key=(value) ⇒ Object private
- #range_key_attribute ⇒ Object private
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.
9 10 11 12 |
# File 'lib/aws-record/record/key_attributes.rb', line 9 def initialize(model_attributes) @keys = {} @model_attributes = model_attributes end |
Instance Attribute Details
#keys ⇒ Object (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.
7 8 9 |
# File 'lib/aws-record/record/key_attributes.rb', line 7 def keys @keys end |
Instance Method Details
#hash_key ⇒ 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.
14 15 16 |
# File 'lib/aws-record/record/key_attributes.rb', line 14 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.
30 31 32 33 |
# File 'lib/aws-record/record/key_attributes.rb', line 30 def hash_key=(value) @keys[:hash] = value @hash_key = value end |
#hash_key_attribute ⇒ 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.
18 19 20 |
# File 'lib/aws-record/record/key_attributes.rb', line 18 def hash_key_attribute @model_attributes.attribute_for(hash_key) end |
#range_key ⇒ 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.
22 23 24 |
# File 'lib/aws-record/record/key_attributes.rb', line 22 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.
35 36 37 38 |
# File 'lib/aws-record/record/key_attributes.rb', line 35 def range_key=(value) @keys[:range] = value @range_key = value end |
#range_key_attribute ⇒ 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.
26 27 28 |
# File 'lib/aws-record/record/key_attributes.rb', line 26 def range_key_attribute @model_attributes.attribute_for(range_key) end |