Class: XRBP::SHAMap::Item
- Inherits:
-
Object
- Object
- XRBP::SHAMap::Item
- Defined in:
- lib/xrbp/nodestore/shamap/item.rb
Overview
Binary data blog stored in DB w/ key
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize(args = {}) ⇒ Item
Returns a new instance of Item.
8 9 10 11 |
# File 'lib/xrbp/nodestore/shamap/item.rb', line 8 def initialize(args = {}) @key = args[:key] @data = args[:data] end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
6 7 8 |
# File 'lib/xrbp/nodestore/shamap/item.rb', line 6 def data @data end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
5 6 7 |
# File 'lib/xrbp/nodestore/shamap/item.rb', line 5 def key @key end |