Class: CipherStash::Record
- Inherits:
-
Object
- Object
- CipherStash::Record
- Defined in:
- lib/cipherstash/record.rb
Overview
The fundamental unit of storage.
Instance Attribute Summary collapse
-
#uuid ⇒ String
readonly
The UUID of the record.
Instance Method Summary collapse
-
#[](k) ⇒ Object, NilClass
Fetch the value of a top-level key in a record.
Instance Attribute Details
#uuid ⇒ String (readonly)
The UUID of the record.
7 8 9 |
# File 'lib/cipherstash/record.rb', line 7 def uuid @uuid end |
Instance Method Details
#[](k) ⇒ Object, NilClass
Fetch the value of a top-level key in a record.
25 26 27 28 29 30 31 |
# File 'lib/cipherstash/record.rb', line 25 def [](k) if @data.nil? raise Client::Error::IndexOnlyRecordError, "This record does not have any associated data" end @data[k] end |