Skip to content

Instantly share code, notes, and snippets.

@uneeq
Created July 19, 2017 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uneeq/34e9f4b47bddc76e95f0283db34512fb to your computer and use it in GitHub Desktop.
Save uneeq/34e9f4b47bddc76e95f0283db34512fb to your computer and use it in GitHub Desktop.
Amazon response
=> #<Amazon::Ecs::Response:0x007f952b3fa260
@doc=
#(Document:0x3fca959fd0e0 {
name = "document",
children = [
#(Element:0x3fca959f5908 {
name = "ItemLookupResponse",
children = [
#(Element:0x3fca959f1ad8 {
name = "OperationRequest",
children = [
#(Element:0x3fca959ed6b8 {
name = "HTTPHeaders",
children = [
#(Element:0x3fca959e84b0 { name = "Header", attributes = [ #(Attr:0x3fca959e5da0 { name = "Name", value = "UserAgent" }), #(Attr:0x3fca959e5d8c { name = "Value", value = "Ruby" })] })]
}),
#(Element:0x3fca959d0d4c { name = "RequestId", children = [ #(Text "5904faca-194e-4f13-acdd-f302bfd653d3")] }),
#(Element:0x3fca9690ef0c {
name = "Arguments",
children = [
#(Element:0x3fca9690a0ec {
name = "Argument",
attributes = [ #(Attr:0x3fca96907888 { name = "Name", value = "AWSAccessKeyId" }), #(Attr:0x3fca96907874 { name = "Value", value = "#####################" })]
}),
#(Element:0x3fca959bde04 {
name = "Argument",
attributes = [ #(Attr:0x3fca959bd0bc { name = "Name", value = "AssociateTag" }), #(Attr:0x3fca959bd0a8 { name = "Value", value = "######################" })]
}),
#(Element:0x3fca969023c4 {
name = "Argument",
attributes = [ #(Attr:0x3fca968ff4e4 { name = "Name", value = "ItemId" }), #(Attr:0x3fca968ff4d0 { name = "Value", value = "0974514055" })]
}),
#(Element:0x3fca968ee43c {
name = "Argument",
attributes = [ #(Attr:0x3fca968eb5fc { name = "Name", value = "Operation" }), #(Attr:0x3fca968eb5e8 { name = "Value", value = "ItemLookup" })]
}),
#(Element:0x3fca968da608 {
name = "Argument",
attributes = [ #(Attr:0x3fca968d77c8 { name = "Name", value = "Service" }), #(Attr:0x3fca968d77b4 { name = "Value", value = "AWSECommerceService" })]
}),
#(Element:0x3fca968c62c0 {
name = "Argument",
attributes = [ #(Attr:0x3fca968c35e8 { name = "Name", value = "Timestamp" }), #(Attr:0x3fca968c35d4 { name = "Value", value = "2017-07-19T16:17:12Z" })]
}),
#(Element:0x3fca959a8360 {
name = "Argument",
attributes = [ #(Attr:0x3fca959a5674 { name = "Name", value = "Version" }), #(Attr:0x3fca959a5660 { name = "Value", value = "2013-08-01" })]
}),
#(Element:0x3fca968b27ac {
name = "Argument",
attributes = [ #(Attr:0x3fca968afac0 { name = "Name", value = "Signature" }), #(Attr:0x3fca968afaac { name = "Value", value = "vYAhPYnis86wdWl+qZs/fecBnVfWCZut/YYVD1k9r6w=" })]
})]
}),
#(Element:0x3fca9689b700 { name = "RequestProcessingTime", children = [ #(Text "0.0090429290000000")] })]
}),
#(Element:0x3fca9688fb44 {
name = "Items",
children = [
#(Element:0x3fca9688b4f4 {
name = "Request",
children = [
#(Element:0x3fca968874f8 { name = "IsValid", children = [ #(Text "True")] }),
#(Element:0x3fca9687f85c {
name = "ItemLookupRequest",
children = [
#(Element:0x3fca9687a014 { name = "IdType", children = [ #(Text "ASIN")] }),
#(Element:0x3fca9686ea48 { name = "ItemId", children = [ #(Text "0974514055")] }),
#(Element:0x3fca9686662c { name = "ResponseGroup", children = [ #(Text "Small")] }),
#(Element:0x3fca91d27d50 { name = "VariationPage", children = [ #(Text "All")] })]
})]
}),
#(Element:0x3fca959982d0 {
name = "Item",
children = [
#(Element:0x3fca95991d04 { name = "ASIN", children = [ #(Text "0974514055")] }),
#(Element:0x3fca9598c110 {
name = "DetailPageURL",
children = [
#(Text "https://www.amazon.com/Programming-Ruby-Pragmatic-Programmers-Second/dp/0974514055?SubscriptionId=AKIAJO7E5OLQ67NVPFZA&tag=roundforest-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=0974514055")]
}),
#(Element:0x3fca9597c634 {
name = "ItemLinks",
children = [
#(Element:0x3fca95978098 {
name = "ItemLink",
children = [
#(Element:0x3fca959741dc { name = "Description", children = [ #(Text "Technical Details")] }),
#(Element:0x3fca95969c8c {
name = "URL",
children = [
#(Text "https://www.amazon.com/Programming-Ruby-Pragmatic-Programmers-Second/dp/tech-data/0974514055?SubscriptionId=AKIAJO7E5OLQ67NVPFZA&tag=roundforest-20&linkCode=xm2&camp=2025&creative=386001&creativeASIN=0974514055")]
})]
}),
#(Element:0x3fca95959288 {
name = "ItemLink",
children = [
#(Element:0x3fca9217ccac { name = "Description", children = [ #(Text "Add To Baby Registry")] }),
#(Element:0x3fca92174e08 {
name = "URL",
children = [
#(Text "https://www.amazon.com/gp/registry/baby/add-item.html?asin.0=0974514055&SubscriptionId=AKIAJO7E5OLQ67NVPFZA&tag=roundforest-20&linkCode=xm2&camp=2025&creative=386001&creativeASIN=0974514055")]
})]
}),
#(Element:0x3fca9595023c {
name = "ItemLink",
children = [
#(Element:0x3fca96862158 { name = "Description", children = [ #(Text "Add To Wedding Registry")] }),
#(Element:0x3fca9594cd08 {
name = "URL",
children = [
#(Text "https://www.amazon.com/gp/registry/wedding/add-item.html?asin.0=0974514055&SubscriptionId=AKIAJO7E5OLQ67NVPFZA&tag=roundforest-20&linkCode=xm2&camp=2025&creative=386001&creativeASIN=0974514055")]
})]
}),
#(Element:0x3fca921692ec {
name = "ItemLink",
children = [
#(Element:0x3fca9593cbc4 { name = "Description", children = [ #(Text "Add To Wishlist")] }),
#(Element:0x3fca95935248 {
name = "URL",
children = [
#(Text "https://www.amazon.com/gp/registry/wishlist/add-item.html?asin.0=0974514055&SubscriptionId=AKIAJO7E5OLQ67NVPFZA&tag=roundforest-20&linkCode=xm2&camp=2025&creative=386001&creativeASIN=0974514055")]
})]
}),
#(Element:0x3fca91d210f4 {
name = "ItemLink",
children = [
#(Element:0x3fca9592ce40 { name = "Description", children = [ #(Text "Tell A Friend")] }),
#(Element:0x3fca968478bc {
name = "URL",
children = [
#(Text "https://www.amazon.com/gp/pdp/taf/0974514055?SubscriptionId=AKIAJO7E5OLQ67NVPFZA&tag=roundforest-20&linkCode=xm2&camp=2025&creative=386001&creativeASIN=0974514055")]
})]
}),
#(Element:0x3fca95929a24 {
name = "ItemLink",
children = [
#(Element:0x3fca95925910 { name = "Description", children = [ #(Text "All Customer Reviews")] }),
#(Element:0x3fca9591c20c {
name = "URL",
children = [
#(Text "https://www.amazon.com/review/product/0974514055?SubscriptionId=AKIAJO7E5OLQ67NVPFZA&tag=roundforest-20&linkCode=xm2&camp=2025&creative=386001&creativeASIN=0974514055")]
})]
}),
#(Element:0x3fca9682e31c {
name = "ItemLink",
children = [
#(Element:0x3fca9591bdac { name = "Description", children = [ #(Text "All Offers")] }),
#(Element:0x3fca968248d0 {
name = "URL",
children = [
#(Text "https://www.amazon.com/gp/offer-listing/0974514055?SubscriptionId=AKIAJO7E5OLQ67NVPFZA&tag=roundforest-20&linkCode=xm2&camp=2025&creative=386001&creativeASIN=0974514055")]
})]
})]
}),
#(Element:0x3fca9681dc88 {
name = "ItemAttributes",
children = [
#(Element:0x3fca968199a8 { name = "Author", children = [ #(Text "Dave Thomas")] }),
#(Element:0x3fca9590c1cc { name = "Author", children = [ #(Text "Chad Fowler")] }),
#(Element:0x3fca9680d9b4 { name = "Author", children = [ #(Text "Andy Hunt")] }),
#(Element:0x3fca94ff9d00 { name = "Manufacturer", children = [ #(Text "Pragmatic Bookshelf")] }),
#(Element:0x3fca95904774 { name = "ProductGroup", children = [ #(Text "Book")] }),
#(Element:0x3fca958f9874 { name = "Title", children = [ #(Text "Programming Ruby: The Pragmatic Programmers' Guide, Second Edition")] })]
})]
})]
})]
})]
})>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment