Class: KBSecret::Record::Snippet
- Defined in:
- lib/kbsecret/record/snippet.rb
Overview
Represents a record containing a code snippet and its description.
Instance Attribute Summary collapse
-
#code ⇒ String
The code snippet.
-
#description ⇒ String
The description of the code snippet.
Attributes inherited from Abstract
#data, #label, #path, #session, #timestamp, #type
Method Summary
Methods inherited from Abstract
data_field, data_fields, #data_fields, #defer_sync, #external_fields, external_fields, gen_methods, #initialize, #initialize_from_hash, internal?, #internal?, load!, #populate_internal_fields, #sensitive?, sensitive?, #sync!, #to_h, #to_s, type
Constructor Details
This class inherits a constructor from KBSecret::Record::Abstract
Instance Attribute Details
#code ⇒ String
Returns the code snippet.
11 |
# File 'lib/kbsecret/record/snippet.rb', line 11 data_field :code, sensitive: false |
#description ⇒ String
Returns the description of the code snippet.
11 |
# File 'lib/kbsecret/record/snippet.rb', line 11 data_field :code, sensitive: false |