This will be version 0.0.1. Update response to provide minimal functionality

This commit is contained in:
Dan Milne
2019-09-07 22:02:02 +10:00
parent 17837ed02f
commit 9ffa32c705
3 changed files with 9 additions and 6 deletions

View File

@@ -3,16 +3,16 @@ require 'byebug'
module AwsPaa
class Request
include AwsRequest
attr_accessor :client, :marketplace, :timestamp, :datestamp, :amzstamp, :resources, :service
attr_accessor :headers, :payload
attr_accessor :client, :marketplace, :resources, :payload, :service, :partner_type
attr_reader :partner_tag
def initialize(client:)
def initialize(client:, resources: nil)
@client = client
@marketplace = client.marketplace
@partner_tag = client.partner_tag
@partner_type = 'Associates'
@resources = [
@resources = resources || [
"Images.Primary.Large",
"ItemInfo.ContentInfo",
"ItemInfo.ProductInfo",