lib/ews/soap/exchange_availability.rb
def set_user_oof_settings(opts)
      opts = opts.clone
      [:mailbox, :oof_state].each do |k|
        validate_param(opts, k, true)
      end
      req = build_soap! do |type, builder|
        if(type == :header)
        else
        builder.nbuild.SetUserOofSettingsRequest {|x|
          x.parent.default_namespace = @default_ns
          builder.mailbox! opts.delete(:mailbox)
          builder.user_oof_settings!(opts)
        }
        end
      end
      do_soap_request(req, response_class: EwsSoapAvailabilityResponse)
    end
def set_user_oof_settings(opts)
      opts = opts.clone
      [:mailbox, :oof_state].each do |k|
        validate_param(opts, k, true)
      end
      req = build_soap! do |type, builder|
        if(type == :header)
        else
        builder.nbuild.SetUserOofSettingsRequest {|x|
          x.parent.default_namespace = @default_ns
          builder.mailbox! opts.delete(:mailbox)
          builder.user_oof_settings!(opts)
        }
        end
      end
      do_soap_request(req, response_class: EwsSoapAvailabilityResponse)
    end
def set_user_oof_settings ( opts ) opts = opts . clone [ :mailbox , :oof_state ] . each do | k | validate_param ( opts , k , true ) end req = build_soap! do | type , builder | if ( type == :header ) else builder . nbuild . SetUserOofSettingsRequest { | x | x . parent . default_namespace = @default_ns builder . mailbox! opts . delete ( :mailbox ) builder . user_oof_settings! ( opts ) } end end do_soap_request ( req , response_class : EwsSoapAvailabilityResponse ) end
Sets a mailbox user's Out of Office (OOF) settings and message.
 @see http://msdn.microsoft.com/en-us/library/aa580294.aspx
 @param [Hash] opts
 @option opts [Hash] :mailbox the mailbox hash for the use
 @option opts [String,Symbol] :oof_state :enabled, :disabled, :scheduled
 @option opts [Hash] :duration {start_time: DateTime, end_time: DateTime}
 @option opts [String] :internal_reply
 @option opts [String] :external_reply
 @option opts [String,Symbol] :external_audience :none, :known, :all
Sets a mailbox user s Out of Office ( OOF ) settings and message .