class Aws::Query::ParamList

def [](param_name)

Returns:
  • (Param, nil) -
def [](param_name)
  @params[param_name.to_s]
end

def delete(param_name)

Returns:
  • (Param, nil) -

Parameters:
  • param_name (String) --
def delete(param_name)
  @params.delete(param_name)
end

def each(&block)

Returns:
  • (Enumerable) -
def each(&block)
  to_a.each(&block)
end

def empty?

Returns:
  • (Boolean) -
def empty?
  @params.empty?
end

def initialize

Other tags:
    Api: - private
def initialize
  @params = {}
end

def set(param_name, param_value = nil)

Returns:
  • (Param) -

Parameters:
  • param_value (String, nil) --
  • param_name (String) --
def set(param_name, param_value = nil)
  param = Param.new(param_name, param_value)
  @params[param.name] = param
  param
end

def to_a

Returns:
  • (Array) - Returns an array of sorted {Param} objects.
def to_a
  @params.values.sort
end

def to_io

Returns:
  • (#read, #rewind, #size) -
def to_io
  IoWrapper.new(self)
end

def to_s

Returns:
  • (String) -
def to_s
  to_a.map(&:to_s).join('&')
end