Class: Notesgrip::NotesEmbeddedObject

Inherits:
GripWrapper show all
Defined in:
lib/notesgrip/NotesRichTextItem.rb

Overview

NotesEmbeddedObject Class ================

An embedded object(attached file(EMBED_ATTACHMENT), object link(EMBED_OBJECTLINK), OLE(EMBED_OBJECT), etc)

Constant Summary collapse

EMBED_ATTACHMENT =
1454
EMBED_OBJECT =
1453
1452
TypeDic =
{
  1454=>'EMBED_ATTACHMENT', 1453=>'EMBED_OBJECT', 1452=>'EMBED_OBJECTLINK'
}

Instance Method Summary collapse

Methods inherited from GripWrapper

#initialize, #raw

Constructor Details

This class inherits a constructor from Notesgrip::GripWrapper

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Notesgrip::GripWrapper

Instance Method Details

#ExtractFile(path) ⇒ Object



169
170
171
172
# File 'lib/notesgrip/NotesRichTextItem.rb', line 169

def ExtractFile( path )
  fullpath = FileSystemObject.instance.fullpath(path)
  @raw_object.ExtractFile(fullpath)
end

#inspectObject



179
180
181
# File 'lib/notesgrip/NotesRichTextItem.rb', line 179

def inspect
  "<#{self.class} Type:#{TypeDic[self.Type]} Name:#{self.Name.inspect}>"
end

#ParentObject Also known as: parent



164
165
166
# File 'lib/notesgrip/NotesRichTextItem.rb', line 164

def Parent
  NotesRichTextItem.new(@raw_object.Parent)
end

#RemoveObject



174
175
176
177
# File 'lib/notesgrip/NotesRichTextItem.rb', line 174

def Remove()
  @raw_object.Remove()
  @raw_object = nil
end