Class: MWS::Request
Constant Summary collapse
- DEFAULTS =
{ "Version" => "2010-10-01", "SignatureVersion" => "2", "SignatureMethod" => "HmacSHA256", }
Instance Attribute Summary collapse
-
#parameters ⇒ Object
Returns the value of attribute parameters.
Instance Method Summary collapse
- #<<(hash) ⇒ Object
-
#initialize(parameters, secret_access_key) ⇒ Request
constructor
A new instance of Request.
- #post ⇒ Object
Constructor Details
Instance Attribute Details
#parameters ⇒ Object
Returns the value of attribute parameters.
18 19 20 |
# File 'lib/mws/request.rb', line 18 def parameters @parameters end |
Instance Method Details
#<<(hash) ⇒ Object
25 26 27 |
# File 'lib/mws/request.rb', line 25 def <<(hash) @parameters.merge!(hash) end |
#post ⇒ Object
29 30 31 |
# File 'lib/mws/request.rb', line 29 def post self.class.post('/FulfillmentInboundShipment/2010-10-01?' + sign(build_query_string)) end |