Class: Mapi::Pst::RecipientTable
- Inherits:
-
BlockParser
- Object
- BlockParser
- Mapi::Pst::RecipientTable
- Defined in:
- lib/mapi/pst.rb
Overview
there is no equivalent to this in libpst. ID2_RECIPIENTS was just guessed given the above AttachmentTable.
Constant Summary
Constants inherited from BlockParser
BlockParser::ID2_ATTACHMENTS, BlockParser::ID2_RECIPIENTS, BlockParser::IMMEDIATE_TYPES, BlockParser::INDIRECT_TYPES, BlockParser::PR_BODY_HTML, BlockParser::PR_SUBJECT, BlockParser::TYPES
Instance Attribute Summary collapse
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Attributes inherited from BlockParser
#data, #data_chunks, #offset_tables
Instance Method Summary collapse
-
#initialize(desc) ⇒ RecipientTable
constructor
A new instance of RecipientTable.
- #to_a ⇒ Object
Methods inherited from BlockParser
#get_data_indirect, #get_data_indirect_io, #handle_indirect_values, #idx2, #load_header
Constructor Details
#initialize(desc) ⇒ RecipientTable
Returns a new instance of RecipientTable.
1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 |
# File 'lib/mapi/pst.rb', line 1479 def initialize desc @desc = desc # no super, we only actually want BlockParser2#idx2 @table = nil return unless desc.list_index return unless idx = idx2[ID2_RECIPIENTS] # FIXME make a fake desc. desc2 = OpenStruct.new :desc => idx, :pst => desc.pst, :list_index => desc.list_index @table = RawPropertyStoreTable.new desc2 end |
Instance Attribute Details
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
1478 1479 1480 |
# File 'lib/mapi/pst.rb', line 1478 def desc @desc end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
1478 1479 1480 |
# File 'lib/mapi/pst.rb', line 1478 def table @table end |
Instance Method Details
#to_a ⇒ Object
1490 1491 1492 1493 |
# File 'lib/mapi/pst.rb', line 1490 def to_a return [] if !table table.map { |x| x.to_a } end |