Class: Viewpoint::EWS::Template::ForwardItem
- Defined in:
- lib/ews/templates/forward_item.rb
Instance Method Summary collapse
-
#to_ews ⇒ Object
Format this object for EWS backend consumption.
Methods inherited from Message
#has_attachments?, #initialize
Constructor Details
This class inherits a constructor from Viewpoint::EWS::Template::Message
Instance Method Details
#to_ews ⇒ Object
Format this object for EWS backend consumption.
6 7 8 9 10 11 |
# File 'lib/ews/templates/forward_item.rb', line 6 def to_ews ews_opts, msg = to_ews_basic msg[:reference_item_id] = reference_item_id msg[:new_body_content] = {text: new_body_content, body_type: new_body_type} ews_opts.merge({items: [{forward_item: msg}]}) end |