Class: Mapi::Pst::RawPropertyStoreTable::Column
- Inherits:
-
Struct
- Object
- Struct
- Mapi::Pst::RawPropertyStoreTable::Column
- Defined in:
- lib/mapi/pst.rb
Instance Attribute Summary collapse
-
#ind2_off ⇒ Object
Returns the value of attribute ind2_off.
-
#ref_type ⇒ Object
Returns the value of attribute ref_type.
-
#size ⇒ Object
Returns the value of attribute size.
-
#slot ⇒ Object
Returns the value of attribute slot.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(data) ⇒ Column
constructor
A new instance of Column.
- #inspect ⇒ Object
- #nice_prop_name ⇒ Object
- #nice_type_name ⇒ Object
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_off ⇒ Object
Returns the value of attribute ind2_off
1311 1312 1313 |
# File 'lib/mapi/pst.rb', line 1311 def ind2_off @ind2_off end |
#ref_type ⇒ Object
Returns the value of attribute ref_type
1311 1312 1313 |
# File 'lib/mapi/pst.rb', line 1311 def ref_type @ref_type end |
#size ⇒ Object
Returns the value of attribute size
1311 1312 1313 |
# File 'lib/mapi/pst.rb', line 1311 def size @size end |
#slot ⇒ Object
Returns the value of attribute slot
1311 1312 1313 |
# File 'lib/mapi/pst.rb', line 1311 def slot @slot end |
#type ⇒ Object
Returns the value of attribute type
1311 1312 1313 |
# File 'lib/mapi/pst.rb', line 1311 def type @type end |
Instance Method Details
#inspect ⇒ Object
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_name ⇒ Object
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 |