lib/ews/soap/builders/ews_builder.rb
# A helper method to dispatch to a FolderId or DistinguishedFolderId correctly
# @param [Hash] fid A folder_id
#   Ex: {:id => myid, :change_key => ck}
A helper method to dispatch to a FolderId or DistinguishedFolderId correctly
A helper method to dispatch to a FolderId or DistinguishedFolderId correctly
def dispatch_folder_id!(fid)
      if fid[:id].is_a? String
        folder_id!(fid[:id], fid[:change_key])
      elsif fid[:id].is_a? Symbol
        distinguished_folder_id!(fid[:id], fid[:change_key], fid[:act_as])
      else
        raise EwsBadArgumentError, "Bad argument given for a FolderId. #{fid[:id].class}"
      end
    end
def dispatch_folder_id! ( fid ) if fid [ :id ] . is_a? String folder_id! ( fid [ :id ] , fid [ :change_key ] ) elsif fid [ :id ] . is_a? Symbol distinguished_folder_id! ( fid [ :id ] , fid [ :change_key ] , fid [ :act_as ] ) else raise EwsBadArgumentError , "Bad argument given for a FolderId. #{fid[:id].class}" end end
A helper method to dispatch to a FolderId or DistinguishedFolderId correctly
A helper method to dispatch to a FolderId or DistinguishedFolderId correctly
fid
<not_specific>
<not_specific>
fid A folder_id Ex: {:id => myid, :change_key => ck}
fid A folder_id Ex : { : id = > myid : change_key = > ck }