Class: Mapi::Pst::RawPropertyStoreTable::Column

Inherits:
Struct
  • Object
show all
Defined in:
lib/mapi/pst.rb

Overview

TCOLDESC

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Column

Returns a new instance of Column.



1360
1361
1362
# File 'lib/mapi/pst.rb', line 1360

def initialize data
	super(*data.unpack('v3CC'))
end

Instance Attribute Details

#ind2_offObject

Returns the value of attribute ind2_off

Returns:

  • (Object)

    the current value of ind2_off



1359
1360
1361
# File 'lib/mapi/pst.rb', line 1359

def ind2_off
  @ind2_off
end

#ref_typeObject

Returns the value of attribute ref_type

Returns:

  • (Object)

    the current value of ref_type



1359
1360
1361
# File 'lib/mapi/pst.rb', line 1359

def ref_type
  @ref_type
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



1359
1360
1361
# File 'lib/mapi/pst.rb', line 1359

def size
  @size
end

#slotObject

Returns the value of attribute slot

Returns:

  • (Object)

    the current value of slot



1359
1360
1361
# File 'lib/mapi/pst.rb', line 1359

def slot
  @slot
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



1359
1360
1361
# File 'lib/mapi/pst.rb', line 1359

def type
  @type
end

Instance Method Details

#inspectObject



1372
1373
1374
# File 'lib/mapi/pst.rb', line 1372

def inspect
	"#<#{self.class} name=#{nice_prop_name.inspect}, type=#{nice_type_name.inspect}>"
end

#nice_prop_nameObject



1368
1369
1370
# File 'lib/mapi/pst.rb', line 1368

def nice_prop_name
	Mapi::PropertyStore::TAGS['%04x' % type].first[/_(.*)/, 1].downcase rescue '0x%04x' % type
end

#nice_type_nameObject



1364
1365
1366
# File 'lib/mapi/pst.rb', line 1364

def nice_type_name
	Mapi::Types::DATA[ref_type].first[/_(.*)/, 1].downcase rescue '0x%04x' % ref_type
end