Class: Keepassx::EntryField

Inherits:
Object
  • Object
show all
Includes:
Field
Defined in:
lib/keepassx/entry_field.rb

Constant Summary collapse

FIELD_TYPES =
[
    [0x0, 'ignored', :null],
    [0x1, 'uuid', :ascii],
    [0x2, 'groupid', :int],
    [0x3, 'imageid', :int],
    [0x4, 'title', :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]
]

Constants included from Field

Field::DATA_LENGTH_FIELD_SIZE, Field::TYPE_CODE_FIELD_SIZE

Instance Attribute Summary collapse

Method Summary

Methods included from Field

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

Instance Attribute Details

#data_typeObject (readonly)

Returns the value of attribute data_type.



24
25
26
# File 'lib/keepassx/entry_field.rb', line 24

def data_type
  @data_type
end

#nameObject (readonly)

Returns the value of attribute name.



24
25
26
# File 'lib/keepassx/entry_field.rb', line 24

def name
  @name
end

#type_codeObject (readonly)

Returns the value of attribute type_code.



24
25
26
# File 'lib/keepassx/entry_field.rb', line 24

def type_code
  @type_code
end