Class: EWS::ShapeBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/ews/builders/shape_builder.rb

Instance Method Summary collapse

Constructor Details

#initialize(action_node, opts = {}) ⇒ ShapeBuilder

Returns a new instance of ShapeBuilder.



3
4
5
6
# File 'lib/ews/builders/shape_builder.rb', line 3

def initialize(action_node, opts = {})
  @action_node, @opts = action_node, opts
  @shape_node = nil
end

Instance Method Details

#attachment_shape!Object

AttachmentShape



37
38
39
40
41
42
# File 'lib/ews/builders/shape_builder.rb', line 37

def attachment_shape!
  set_shape_node 'tns:AttachmentShape'
  include_mime_content!
  body_type!
  additional_properties!
end

#folder_shape!Object

Parameters:

  • opts (Hash)


24
25
26
27
28
# File 'lib/ews/builders/shape_builder.rb', line 24

def folder_shape!
  set_shape_node 'tns:FolderShape'
  base_shape!
  additional_properties!
end

#item_shape!Object

Parameters:

  • opts (Hash)


13
14
15
16
17
18
19
# File 'lib/ews/builders/shape_builder.rb', line 13

def item_shape!
  set_shape_node 'tns:ItemShape'
  base_shape!
  include_mime_content!
  body_type!
  additional_properties!      
end