Class: Keepassx::Field::Entry

Inherits:
Base
  • Object
show all
Defined in:
lib/keepassx/field/entry.rb

Constant Summary

Constants inherited from Base

Base::DATA_LENGTH_FIELD_SIZE, Base::FIELD_TERMINATOR, Base::TYPE_CODE_FIELD_SIZE

Instance Attribute Summary

Attributes inherited from Base

#data_type, #name, #type_code

Class Method Summary collapse

Methods inherited from Base

#data, #data=, #encode, #initialize, #length, #size, #terminator?

Constructor Details

This class inherits a constructor from Keepassx::Field::Base

Class Method Details

.fields_description ⇒ Object

rubocop:disable Metrics/MethodLength



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/keepassx/field/entry.rb', line 8

def self.fields_description
  @fields_description ||= [
    [0x0, 'ignored',         :null],
    [0x1, 'id',              :ascii],
    [0x2, 'group_id',        :int],
    [0x3, 'icon',            :int],
    [0x4, 'name',            :string],
    [0x5, 'url',             :string],
    [0x6, 'username',        :string],
    [0x7, 'password',        :string],
    [0x8, 'notes',           :string],
    [0x9, 'creation_time',   :date],
    [0xa, 'last_mod_time',   :date],
    [0xb, 'last_acc_time',   :date],
    [0xc, 'expiration_time', :date],
    [0xd, 'binary_desc',     :string],
    [0xe, 'binary_data',     :shunt],
    [0xFFFF, 'terminator',   :null],
  ]
end