Class: BSV::KVStore::Entry
- Inherits:
-
Data
- Object
- Data
- BSV::KVStore::Entry
- Defined in:
- lib/bsv/kv_store/entry.rb
Overview
An immutable KVStore entry returned from Global#get.
token is populated only when include_token: true is passed to #get. history is populated only when history: true is passed to #get.
Instance Attribute Summary collapse
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
-
#history ⇒ Object
readonly
Returns the value of attribute history.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#protocol_id ⇒ Object
readonly
Returns the value of attribute protocol_id.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key:, value:, controller:, protocol_id:, tags:, token: nil, history: nil) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(key:, value:, controller:, protocol_id:, tags:, token: nil, history: nil) ⇒ Entry
Returns a new instance of Entry.
10 11 12 |
# File 'lib/bsv/kv_store/entry.rb', line 10 def initialize(key:, value:, controller:, protocol_id:, tags:, token: nil, history: nil) super end |
Instance Attribute Details
#controller ⇒ Object (readonly)
Returns the value of attribute controller
9 10 11 |
# File 'lib/bsv/kv_store/entry.rb', line 9 def controller @controller end |
#history ⇒ Object (readonly)
Returns the value of attribute history
9 10 11 |
# File 'lib/bsv/kv_store/entry.rb', line 9 def history @history end |
#key ⇒ Object (readonly)
Returns the value of attribute key
9 10 11 |
# File 'lib/bsv/kv_store/entry.rb', line 9 def key @key end |
#protocol_id ⇒ Object (readonly)
Returns the value of attribute protocol_id
9 10 11 |
# File 'lib/bsv/kv_store/entry.rb', line 9 def protocol_id @protocol_id end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags
9 10 11 |
# File 'lib/bsv/kv_store/entry.rb', line 9 def @tags end |
#token ⇒ Object (readonly)
Returns the value of attribute token
9 10 11 |
# File 'lib/bsv/kv_store/entry.rb', line 9 def token @token end |
#value ⇒ Object (readonly)
Returns the value of attribute value
9 10 11 |
# File 'lib/bsv/kv_store/entry.rb', line 9 def value @value end |