Class: KBSecret::Record::Snippet

Inherits:
Abstract
  • Object
show all
Defined in:
lib/kbsecret/record/snippet.rb

Overview

Represents a record containing a code snippet and its description.

Instance Attribute Summary collapse

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

#codeString

Returns the code snippet.

Returns:

  • (String)

    the code snippet



11
# File 'lib/kbsecret/record/snippet.rb', line 11

data_field :code, sensitive: false

#descriptionString

Returns the description of the code snippet.

Returns:

  • (String)

    the description of the code snippet



11
# File 'lib/kbsecret/record/snippet.rb', line 11

data_field :code, sensitive: false