Class: SimpleAWS::Request::Params

Inherits:
Hash
  • Object
show all
Defined in:
lib/simple_aws/core/request.rb

Instance Method Summary collapse

Instance Method Details

#[]=(key, value) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/simple_aws/core/request.rb', line 57

def []=(key, value)
  case value
  when Array
    process_array key, value
  when Hash
    process_hash key, value
  when Time
    super(key, value.iso8601)
  when Date
    super(key, value.strftime("%Y-%m-%d"))
  else
    super
  end
end