Class: Keepassx::GroupField

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

Constant Summary collapse

FIELD_TYPES =
[
    [0x0, 'ignored', :null],
    [0x1, 'groupid', :int],
    [0x2, 'group_name', :string],
    [0x3, 'creation_time', :date],
    [0x4, 'lastmod_time', :date],
    [0x5, 'lastacc_time', :date],
    [0x6, 'expire_time', :date],
    [0x7, 'imageid', :int],
    [0x8, 'level', :short],
    [0x9, 'flags', :int],
    [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.


19
20
21
# File 'lib/keepassx/group_field.rb', line 19

def data_type
  @data_type
end

#nameObject (readonly)

Returns the value of attribute name.


19
20
21
# File 'lib/keepassx/group_field.rb', line 19

def name
  @name
end

#type_codeObject (readonly)

Returns the value of attribute type_code.


19
20
21
# File 'lib/keepassx/group_field.rb', line 19

def type_code
  @type_code
end