Class: Rdomino::Item

Inherits:
Object
  • Object
show all
Includes:
DomObject
Defined in:
lib/rdomino/item.rb

Constant Summary collapse

TYPES =
{16 => :actioncd,
17 => :assistantinfo,
1084 => :attachment,
1076 => :authors,
2 => :collation,
1024 => :datetimes,
1090 => :embeddedobject,
256 => :erroritem,
1536 => :formula,
21 => :html,
6 => :icon,
20 => :lsobject,
25 => :mime_part,
1074 => :names,
7 => :notelinks,
4 => :noterefs,
768 => :numbers,
1085 => :otherobject,
15 => :querycd,
1075 => :readers,
1282 => :rfc822text,
1 => :richtext,
8 => :signature,
1280 => :text,
512 => :unavailable,
0 => :unknown,
14 => :userdata,
1792 => :userid,
18 => :viewmapdata,
19 => :viewmaplayout}

Instance Method Summary collapse

Methods included from DomObject

#empty?, #method_missing, #obj

Constructor Details

#initialize(obj) ⇒ Item

Returns a new instance of Item.



36
37
38
# File 'lib/rdomino/item.rb', line 36

def initialize(obj)
  @obj = obj
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Rdomino::DomObject

Instance Method Details

#<<(s) ⇒ Object



45
46
47
# File 'lib/rdomino/item.rb', line 45

def <<(s)
  obj.AppendToTextList s 
end

#typeObject



40
41
42
43
# File 'lib/rdomino/item.rb', line 40

def type
  a = @obj.Type
  TYPES[a] || a
end