lib/event_inventory/base.rb
# Builds the query string from the specified parameter values.
Builds the query string from the specified parameter values.
Builds the query string from the specified parameter values .
def query(operation)
        old_format = OLD_OPERATIONS.include?(operation)
        @action.parameters.collect do |key, options|
          value = @parameters[options[:as] || key]
          value ||= options[:default] if options.include?(:default)
          "#{format_key(key, old_format)}=#{format_query_value(value)}"
        end.tap do |parameters|
          parameters << unless old_format
            "SecurityToken=#{format_query_value(EventInventory.security_token)}"
          else
            "APPCLIENT_ID=#{format_query_value(EventInventory.security_token)}"
          end
        end.join('&')
      end
def query ( operation ) old_format = OLD_OPERATIONS . include? ( operation ) @action . parameters . collect do | key , options | value = @parameters [ options [ :as ] || key ] value ||= options [ :default ] if options . include? ( :default ) "#{format_key(key, old_format)}=#{format_query_value(value)}" end . tap do | parameters | parameters << unless old_format "SecurityToken=#{format_query_value(EventInventory.security_token)}" else "APPCLIENT_ID=#{format_query_value(EventInventory.security_token)}" end end . join ( '&' ) end
Builds the query string from the specified parameter values.
Builds the query string from the specified parameter values .
operation
<not_specific>