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.
21 22 23 24 |
# File 'lib/aws-record/record/key_attributes.rb', line 21 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.
19 20 21 |
# File 'lib/aws-record/record/key_attributes.rb', line 19 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.
26 27 28 |
# File 'lib/aws-record/record/key_attributes.rb', line 26 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.
42 43 44 45 |
# File 'lib/aws-record/record/key_attributes.rb', line 42 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.
30 31 32 |
# File 'lib/aws-record/record/key_attributes.rb', line 30 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.
34 35 36 |
# File 'lib/aws-record/record/key_attributes.rb', line 34 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.
47 48 49 50 |
# File 'lib/aws-record/record/key_attributes.rb', line 47 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.
38 39 40 |
# File 'lib/aws-record/record/key_attributes.rb', line 38 def range_key_attribute @model_attributes.attribute_for(range_key) end |