Class: KBSecret::Record::Unstructured
- Defined in:
- lib/kbsecret/record/unstructured.rb
Overview
Represents a record containing unstructured text.
Instance Attribute Summary
Attributes inherited from Abstract
#data, #label, #session, #timestamp, #type
Instance Method Summary collapse
-
#initialize(session, label, text) ⇒ Unstructured
constructor
A new instance of Unstructured.
Methods inherited from Abstract
data_field, data_fields, #initialize_from_hash, load!, #path, #sync!, #to_h, type
Constructor Details
#initialize(session, label, text) ⇒ Unstructured
Returns a new instance of Unstructured.
10 11 12 13 14 15 16 |
# File 'lib/kbsecret/record/unstructured.rb', line 10 def initialize(session, label, text) super(session, label) @data = { text: text } end |