lib/peddler/client.rb in peddler-0.8.0 vs lib/peddler/client.rb in peddler-0.9.0

- old
+ new

@@ -24,11 +24,11 @@ attr_accessor :path attr_writer :merchant_id, :marketplace_id, :parser attr_reader :body - alias :configure :tap + alias_method :configure, :tap params('SellerId' => -> { merchant_id }) def self.path(path = nil) path ? @path = path : @path ||= '/' @@ -37,11 +37,11 @@ def self.inherited(base) base.params(params) end def initialize(opts = {}) - opts.each { |k, v| self.send("#{k}=", v) } + opts.each { |k, v| send("#{k}=", v) } end def aws_endpoint "https://#{host}#{path || self.class.path}" end @@ -101,10 +101,10 @@ 'ISO-8859-1' end end def host - HOSTS.fetch(marketplace_id) { raise BadMarketplaceId } + HOSTS.fetch(marketplace_id) { fail BadMarketplaceId } end def extract_options(args) args.last.is_a?(Hash) ? args.pop : {} end