lib/sucker/request.rb in sucker-0.7.0 vs lib/sucker/request.rb in sucker-0.7.1
- old
+ new
@@ -32,10 +32,15 @@
# A helper method that merges a hash into the parameters
def <<(hash)
self.parameters.merge!(hash)
end
+ # A helper method that sets the associate tag
+ def associate_tag=(token)
+ parameters["AssociateTag"] = token
+ end
+
# A reusable, configurable cURL object
def curl
@curl ||= Curl::Easy.new
yield @curl if block_given?
@@ -50,11 +55,11 @@
Response.new(curl)
end
# A helper method that sets the AWS Access Key ID
- def key=(key)
- parameters["AWSAccessKeyId"] = key
+ def key=(token)
+ parameters["AWSAccessKeyId"] = token
end
private
# Timestamps parameters and concatenates them into a query string