Sha256: b73cd495d3952f6350478c8956c79c3fa5f7c4e4d74eb46252594e80c18a1b04
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
module MWS module Report DEFAULT_VERSION = "2009-01-01" def method_missing(method, args={}) action = method.to_s.split("_").map(&:capitalize).join args[:params] = {"Action" => action, "Version" => DEFAULT_VERSION}.merge(args[:params]) args = args.merge({path: "/?#{MWS::QueryString.new(args)}"}) req = MWS::Request.new(args) res = req.execute res.body end module_function :method_missing end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
marketplace_web_service-0.0.3 | lib/mws/report.rb |