lib/ews/soap/builders/ews_builder.rb
# Insert item, enforce xmlns attribute if prefix is present
Insert item, enforce xmlns attribute if prefix is present
Insert item enforce xmlns attribute if prefix is present
def dispatch_field_item!(item, ns_prefix = nil)
      item.values.first[:xmlns_attribute] = ns_prefix if ns_prefix
      type                                = item.keys.first
      val                                 = item[type]
      case type.to_sym
        when :item
        when :message
        when :calendar_item
        when :contact
          contact!(val)
        when :distribution_list
        when :meeting_message
        when :meeting_request
        when :meeting_response
        when :meeting_cancellation
        when :task
        else
          raise EwsBadArgumentError, "Bad SetItemField element. #{type}"
      end
    end
def dispatch_field_item! ( item , ns_prefix = nil ) item . values . first [ :xmlns_attribute ] = ns_prefix if ns_prefix type = item . keys . first val = item [ type ] case type . to_sym when :item when :message when :calendar_item when :contact contact! ( val ) when :distribution_list when :meeting_message when :meeting_request when :meeting_response when :meeting_cancellation when :task else raise EwsBadArgumentError , "Bad SetItemField element. #{type}" end end
Insert item, enforce xmlns attribute if prefix is present
Insert item enforce xmlns attribute if prefix is present
item
<not_specific>
ns_prefix
<not_specific>