Class: Viewpoint::EWS::Types::FileAttachment

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

Constant Summary

FILE_ATTACH_KEY_PATHS =
{
  :is_contact_photo? => [:is_contact_photo, :text],
  :content  => [:content, :text],
}
FILE_ATTACH_KEY_TYPES =
{
  is_contact_photo?:   ->(str){str.downcase == 'true'},
}
FILE_ATTACH_KEY_ALIAS =
{
  :file_name   => :name,
}

Constants inherited from Attachment

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

Constants included from Item

Item::ITEM_KEY_ALIAS, Item::ITEM_KEY_PATHS, 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



35
36
37
38
# File 'lib/ews/types/file_attachment.rb', line 35

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