Class: XRBP::SHAMap::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/xrbp/nodestore/shamap/item.rb

Overview

Binary data blog stored in DB w/ key

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (readonly)

Returns the value of attribute data.


6
7
8
# File 'lib/xrbp/nodestore/shamap/item.rb', line 6

def data
  @data
end

#keyObject (readonly)

Returns the value of attribute key.


5
6
7
# File 'lib/xrbp/nodestore/shamap/item.rb', line 5

def key
  @key
end