Sha256: ddbda4b69bf220e37f5896e144bf616cd74c965519dcb7cffb9fa59e7e856167
Contents?: true
Size: 1.82 KB
Versions: 5
Compression:
Stored size: 1.82 KB
Contents
class Landslider class WsSearch # @param [Hash] params the params to use for the search # @option params [Integer] :first_result_position Sets the starting index of records you want to retrieve. defaults to 1 # @option params [Integer] :total_results_requested Sets the maximum number of records to retrieve. defaults to 25 def initialize(params = {}) @first_result_position = params.fetch(:first_result_position) if params.key?(:first_result_position) @total_results_requested = params.fetch(:total_results_requested) if params.key?(:total_results_requested) end # @param [Integer] value num # Sets the starting index of records you want to retrieve. defaults to 1 attr_writer :first_result_position # @param [Integer] value num # Sets the maximum number of records to retrieve. defaults to 25 attr_writer :total_results_requested # @param [String] value date # Sets a Date to search records updated on or after attr_writer :updated_on # @param [String] value # system source id search? attr_writer :source_id # @param [Boolean] value attr_writer :return_deleted_records, :allow_duplicate_criterion # @param [WsSearchCriterion] value # WsSearchCriterion is only documented to work with these APIs # * getAccounts # * getOpportunities # * getProductFamilies # * GetDurationTypes attr_writer :search_criteria # Adds the search xml # @param [Handsoap::XmlMason::Node] msg # @return [Handsoap::XmlMason::Node] def soapify_for(msg) msg.add 'firstResultPosition', @first_result_position || DEFAULT_FIRST_RESULT_POSITION msg.add 'totalResultsRequested', @total_results_requested || DEFAULT_TOTAL_RESULTS_REQUESTED msg.add 'updatedOn', @updated_on unless @updated_on.nil? unless @search_criteria.nil? @search_criteria.soapify_for(msg) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems