Class: Viewpoint::EWS::Types::ItemAttachment

Inherits:
Attachment
  • Object
show all
Defined in:
lib/ews/types/item_attachment.rb

Constant Summary

ITEM_ATTACH_KEY_PATHS =
{
  item: [:item],
  message: [:message],
  calendar_item: [:calendar_item],
  contact: [:contact],
  task: [:task],
  meeting_message: [:meeting_message],
  meeting_request: [:meeting_request],
  meeting_response: [:meeting_response],
  meeting_cancellation: [:meeting_cancellation]
}
ITEM_ATTACH_KEY_TYPES =
{
  message: :build_message,
  calendar_item: :build_calendar_item,
  contact: :build_contact,
  task: :build_task,
  meeting_message: :build_meeting_message,
  meeting_request: :build_meeting_request,
  meeting_response: :build_meeting_response,
  meeting_cancellation: :build_meeting_cancellation
}
ITEM_ATTACH_KEY_ALIAS =
{ }

Constants inherited from Attachment

Attachment::ATTACH_KEY_ALIAS, Attachment::ATTACH_KEY_PATHS, Attachment::ATTACH_KEY_TYPES

Constants included from Item

Viewpoint::EWS::Types::Item::ITEM_KEY_ALIAS, Viewpoint::EWS::Types::Item::ITEM_KEY_PATHS, Viewpoint::EWS::Types::Item::ITEM_KEY_TYPES

Constants included from ItemFieldUriMap

ItemFieldUriMap::FIELD_URIS

Constants included from Viewpoint::EWS::Types

KEY_ALIAS, KEY_PATHS, KEY_TYPES, OOF_KEY_ALIAS, OOF_KEY_PATHS, OOF_KEY_TYPES

Constants included from StringUtils

StringUtils::DURATION_RE

Constants included from Viewpoint::EWS

ConnectingSID

Instance Attribute Summary

Attributes included from Item

#ews_item, #parent

Attributes included from Viewpoint::EWS::Types

#ews_item

Attributes included from Viewpoint::EWS

#logger

Instance Method Summary collapse

Methods inherited from Attachment

#initialize

Methods included from Item

#add_file_attachment, #add_inline_attachment, #add_item_attachment, #copy, #default_body_type=, #delete!, #forward, included, #initialize, #mark_read!, #move!, #recycle!, #reply_to, #reply_to_all, #submit!, #submit_attachments!

Methods included from Viewpoint::EWS::Types

#auto_deepen?, #deepen!, #ews_methods, #freeze!, #frozen?, #initialize, #mark_deep!, #method_missing, #methods, #respond_to?, #shallow?, #to_s, #unfreeze!

Methods included from StringUtils

included

Methods included from Viewpoint::EWS

#remove_impersonation, root_logger, #set_impersonation

Constructor Details

This class inherits a constructor from Viewpoint::EWS::Types::Attachment

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Viewpoint::EWS::Types

Instance Method Details

#get_all_properties!Object



47
48
49
50
# File 'lib/ews/types/item_attachment.rb', line 47

def get_all_properties!
  resp = ews.get_attachment attachment_ids: [self.id]
  @ews_item.merge!(parse_response(resp))
end