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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Column

Returns a new instance of Column.



1312
1313
1314
# File 'lib/mapi/pst.rb', line 1312

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



1311
1312
1313
# File 'lib/mapi/pst.rb', line 1311

def ind2_off
  @ind2_off
end

#ref_typeObject

Returns the value of attribute ref_type

Returns:

  • (Object)

    the current value of ref_type



1311
1312
1313
# File 'lib/mapi/pst.rb', line 1311

def ref_type
  @ref_type
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



1311
1312
1313
# File 'lib/mapi/pst.rb', line 1311

def size
  @size
end

#slotObject

Returns the value of attribute slot

Returns:

  • (Object)

    the current value of slot



1311
1312
1313
# File 'lib/mapi/pst.rb', line 1311

def slot
  @slot
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



1311
1312
1313
# File 'lib/mapi/pst.rb', line 1311

def type
  @type
end

Instance Method Details

#inspectObject



1324
1325
1326
# File 'lib/mapi/pst.rb', line 1324

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

#nice_prop_nameObject



1320
1321
1322
# File 'lib/mapi/pst.rb', line 1320

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

#nice_type_nameObject



1316
1317
1318
# File 'lib/mapi/pst.rb', line 1316

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