rapa 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 953a8d43a78b6aa2558fad7062cf5d3b76d6fb0a
4
- data.tar.gz: 88a0ae43e333f6f7ffe2fd491c1c0286eb15e204
3
+ metadata.gz: 8bd38493bf8dc357c7e8f6a890e069e8984619a2
4
+ data.tar.gz: 2ecbbcbfe1fa8247091cf0edc5a29d1da58b0dfe
5
5
  SHA512:
6
- metadata.gz: bd6e87c569893c6aff8675d6c101843b5ff273226f516d15d27466678f7080ca0a59ecf5dfbb346246b02c3523dca331fdf24865e3954e1485035ac76e4500c2
7
- data.tar.gz: f51867c4f8ab81638e6881fcb14f70a74ab196b38f795d0f8e713902c828cbdab2055474b0b06f0abb6c193e9594a17b5a85673fd56aeb860715b2952b649669
6
+ metadata.gz: 6b6c9e6f1949755b23a3eff5d16f5dd918efa57ba3914df14d6256fd44ee66aa84e6e621236982143306b8bd08dc70bd4b49f1e232b554cb802eb5c900fd5af0
7
+ data.tar.gz: db6cf97ba37b5a9bc29e9e429a152bea61890f50366d58633d183d043cd088b7489103f7d2ddb8ae5327e653a954a9894d62f0caef300cfc910723c3ff116676
@@ -1,33 +1,37 @@
1
- ## 0.4.2
1
+ ## v0.4.3
2
+
3
+ - Add `Rapa::Resources::ItemResource#ebook?`
4
+
5
+ ## v0.4.2
2
6
 
3
7
  - Add `:browse_node_id` options to `Rapa::Client#search_items`
4
8
  - Add `:item_page` option to `Rapa::Client#search_items`
5
9
  - Add `:power` option to `Rapa::Client#search_items`
6
10
  - Add `Rapa::Queries::BaseQuery#inspect`
7
11
 
8
- ## 0.4.1
12
+ ## v0.4.1
9
13
 
10
14
  - Fix signature escape bug
11
15
 
12
- ## 0.4.0
16
+ ## v0.4.0
13
17
 
14
18
  - Add `:item_ids` option to `Rapa::Client#list_items`
15
19
  - Add `:item_type` option to `Rapa::Client#list_items`
16
20
  - Remove `:asins` option from `Rapa::Client#list_items`
17
21
 
18
- ## 0.3.3
22
+ ## v0.3.3
19
23
 
20
24
  - Fix bug on no image set case
21
25
 
22
- ## 0.3.2
26
+ ## v0.3.2
23
27
 
24
28
  - Fix bug on multi image sets item
25
29
 
26
- ## 0.3.1
30
+ ## v0.3.1
27
31
 
28
32
  - Fix escape bug of spaces in URL query
29
33
 
30
- ## 0.3.0
34
+ ## v0.3.0
31
35
 
32
36
  - Add `Rapa::Responses::SearchItemsResponse#error`
33
37
  - Add `Rapa::Responses::SearchItemsResponse#has_error?`
@@ -35,22 +39,22 @@
35
39
  - Use `"All"` as default SearchIndex parameter
36
40
  - Fix bug that no files included in gem package
37
41
 
38
- ## 0.2.1
42
+ ## v0.2.1
39
43
 
40
44
  - Add `Rapa::Responses::SearchItemsResponse#total_pages`
41
45
  - Add `Rapa::Responses::SearchItemsResponse#total_results`
42
46
  - Fix response parser on `Rapa::Client#search_items`
43
47
 
44
- ## 0.2.0
48
+ ## v0.2.0
45
49
 
46
50
  - Add `Rapa::Client#search_items`
47
51
 
48
- ## 0.1.0
52
+ ## v0.1.0
49
53
 
50
54
  - Add `Rapa::Resources::ItemResource`
51
55
  - Change required Ruby version from 2.2.2 to 2.3
52
56
 
53
- ## 0.0.1
57
+ ## v0.0.1
54
58
 
55
59
  - 1st Release :tada:
56
60
  - Add `Rapa::Client#list_items`
data/README.md CHANGED
@@ -6,7 +6,10 @@
6
6
 
7
7
  An API client library for Amazon Product Advertising API, written in Ruby.
8
8
 
9
- See https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html for more details about Amazon Product Advertising API.
9
+ See the official documents for more details about Amazon Product Advertising API.
10
+
11
+ - http://docs.aws.amazon.com/AWSECommerceService/latest/DG/Welcome.html
12
+ - https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html
10
13
 
11
14
  ## Requirements
12
15
 
@@ -122,6 +125,7 @@ Available methods:
122
125
  - `#creator_name`
123
126
  - `#creator_role`
124
127
  - `#ean`
128
+ - `#ebook?`
125
129
  - `#episode_sequence`
126
130
  - `#genre`
127
131
  - `#has_customer_reviews?`
@@ -172,7 +176,7 @@ Available methods:
172
176
 
173
177
  ### Domain
174
178
 
175
- Available domain examples:
179
+ Available `:domain` option examples:
176
180
 
177
181
  - `"ca"`
178
182
  - `"cn"`
@@ -189,7 +193,7 @@ Available domain examples:
189
193
 
190
194
  ### IdType
191
195
 
192
- Available values:
196
+ Available `:id_type` option examples:
193
197
 
194
198
  - `"ASIN"`
195
199
  - `"EAN"`
@@ -200,7 +204,7 @@ Available values:
200
204
 
201
205
  ### SearchIndex
202
206
 
203
- Available SearchIndex examples:
207
+ Available `:search_index` option examples:
204
208
 
205
209
  - `"All"`
206
210
  - `"Apparel"`
@@ -0,0 +1,261 @@
1
+ {
2
+ "ASIN": "4091250157",
3
+ "DetailPageURL": "https://www.amazon.co.jp/%E3%81%8B%E3%82%89%E3%81%8B%E3%81%84%E4%B8%8A%E6%89%8B%E3%81%AE%E9%AB%98%E6%9C%A8%E3%81%95%E3%82%93-1-%E3%82%B2%E3%83%83%E3%82%B5%E3%83%B3%E5%B0%91%E5%B9%B4%E3%82%B5%E3%83%B3%E3%83%87%E3%83%BC%E3%82%B3%E3%83%9F%E3%83%83%E3%82%AF%E3%82%B9%E3%82%B9%E3%83%9A%E3%82%B7%E3%83%A3%E3%83%AB-%E5%B1%B1%E6%9C%AC-%E5%B4%87%E4%B8%80%E6%9C%97/dp/4091250157%3FSubscriptionId%3DAKIAIRTX3KGK3CZPXPOA%26tag%3Dr7kamura-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D4091250157",
4
+ "ItemLinks": {
5
+ "ItemLink": [
6
+ {
7
+ "Description": "Add To Wishlist",
8
+ "URL": "https://www.amazon.co.jp/gp/registry/wishlist/add-item.html%3Fasin.0%3D4091250157%26SubscriptionId%3DAKIAIRTX3KGK3CZPXPOA%26tag%3Dr7kamura-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3D4091250157"
9
+ },
10
+ {
11
+ "Description": "Tell A Friend",
12
+ "URL": "https://www.amazon.co.jp/gp/pdp/taf/4091250157%3FSubscriptionId%3DAKIAIRTX3KGK3CZPXPOA%26tag%3Dr7kamura-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3D4091250157"
13
+ },
14
+ {
15
+ "Description": "All Customer Reviews",
16
+ "URL": "https://www.amazon.co.jp/review/product/4091250157%3FSubscriptionId%3DAKIAIRTX3KGK3CZPXPOA%26tag%3Dr7kamura-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3D4091250157"
17
+ },
18
+ {
19
+ "Description": "All Offers",
20
+ "URL": "https://www.amazon.co.jp/gp/offer-listing/4091250157%3FSubscriptionId%3DAKIAIRTX3KGK3CZPXPOA%26tag%3Dr7kamura-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3D4091250157"
21
+ }
22
+ ]
23
+ },
24
+ "SmallImage": {
25
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/51g3RhKRFmL._SL75_.jpg",
26
+ "Height": {
27
+ "__content__": "75",
28
+ "Units": "pixels"
29
+ },
30
+ "Width": {
31
+ "__content__": "53",
32
+ "Units": "pixels"
33
+ }
34
+ },
35
+ "MediumImage": {
36
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/51g3RhKRFmL._SL160_.jpg",
37
+ "Height": {
38
+ "__content__": "160",
39
+ "Units": "pixels"
40
+ },
41
+ "Width": {
42
+ "__content__": "113",
43
+ "Units": "pixels"
44
+ }
45
+ },
46
+ "LargeImage": {
47
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/51g3RhKRFmL.jpg",
48
+ "Height": {
49
+ "__content__": "500",
50
+ "Units": "pixels"
51
+ },
52
+ "Width": {
53
+ "__content__": "353",
54
+ "Units": "pixels"
55
+ }
56
+ },
57
+ "ImageSets": {
58
+ "ImageSet": {
59
+ "SwatchImage": {
60
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/51g3RhKRFmL._SL30_.jpg",
61
+ "Height": {
62
+ "__content__": "30",
63
+ "Units": "pixels"
64
+ },
65
+ "Width": {
66
+ "__content__": "21",
67
+ "Units": "pixels"
68
+ }
69
+ },
70
+ "SmallImage": {
71
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/51g3RhKRFmL._SL75_.jpg",
72
+ "Height": {
73
+ "__content__": "75",
74
+ "Units": "pixels"
75
+ },
76
+ "Width": {
77
+ "__content__": "53",
78
+ "Units": "pixels"
79
+ }
80
+ },
81
+ "ThumbnailImage": {
82
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/51g3RhKRFmL._SL75_.jpg",
83
+ "Height": {
84
+ "__content__": "75",
85
+ "Units": "pixels"
86
+ },
87
+ "Width": {
88
+ "__content__": "53",
89
+ "Units": "pixels"
90
+ }
91
+ },
92
+ "TinyImage": {
93
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/51g3RhKRFmL._SL110_.jpg",
94
+ "Height": {
95
+ "__content__": "110",
96
+ "Units": "pixels"
97
+ },
98
+ "Width": {
99
+ "__content__": "78",
100
+ "Units": "pixels"
101
+ }
102
+ },
103
+ "MediumImage": {
104
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/51g3RhKRFmL._SL160_.jpg",
105
+ "Height": {
106
+ "__content__": "160",
107
+ "Units": "pixels"
108
+ },
109
+ "Width": {
110
+ "__content__": "113",
111
+ "Units": "pixels"
112
+ }
113
+ },
114
+ "LargeImage": {
115
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/51g3RhKRFmL.jpg",
116
+ "Height": {
117
+ "__content__": "500",
118
+ "Units": "pixels"
119
+ },
120
+ "Width": {
121
+ "__content__": "353",
122
+ "Units": "pixels"
123
+ }
124
+ },
125
+ "HiResImage": {
126
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/71srV4KOH%2BL.jpg",
127
+ "Height": {
128
+ "__content__": "1000",
129
+ "Units": "pixels"
130
+ },
131
+ "Width": {
132
+ "__content__": "706",
133
+ "Units": "pixels"
134
+ }
135
+ },
136
+ "Category": "primary"
137
+ }
138
+ },
139
+ "ItemAttributes": {
140
+ "Author": "山本 崇一朗",
141
+ "Binding": "コミック",
142
+ "EAN": "9784091250155",
143
+ "EANList": {
144
+ "EANListElement": "9784091250155"
145
+ },
146
+ "IsAdultProduct": "0",
147
+ "ISBN": "4091250157",
148
+ "Label": "小学館",
149
+ "Languages": {
150
+ "Language": {
151
+ "Name": "日本語",
152
+ "Type": "Published"
153
+ }
154
+ },
155
+ "Manufacturer": "小学館",
156
+ "NumberOfPages": "155",
157
+ "PackageDimensions": {
158
+ "Height": {
159
+ "__content__": "55",
160
+ "Units": "100分の1インチ"
161
+ },
162
+ "Length": {
163
+ "__content__": "701",
164
+ "Units": "100分の1インチ"
165
+ },
166
+ "Weight": {
167
+ "__content__": "35",
168
+ "Units": "100分の1ポンド"
169
+ },
170
+ "Width": {
171
+ "__content__": "512",
172
+ "Units": "100分の1インチ"
173
+ }
174
+ },
175
+ "ProductGroup": "Book",
176
+ "ProductTypeName": "ABIS_BOOK",
177
+ "PublicationDate": "2014-06-12",
178
+ "Publisher": "小学館",
179
+ "ReleaseDate": "2014-06-12",
180
+ "Studio": "小学館",
181
+ "Title": "からかい上手の高木さん 1 (ゲッサン少年サンデーコミックススペシャル)"
182
+ },
183
+ "OfferSummary": {
184
+ "LowestNewPrice": {
185
+ "Amount": "596",
186
+ "CurrencyCode": "JPY",
187
+ "FormattedPrice": "¥ 596"
188
+ },
189
+ "LowestUsedPrice": {
190
+ "Amount": "153",
191
+ "CurrencyCode": "JPY",
192
+ "FormattedPrice": "¥ 153"
193
+ },
194
+ "LowestCollectiblePrice": {
195
+ "Amount": "2799",
196
+ "CurrencyCode": "JPY",
197
+ "FormattedPrice": "¥ 2,799"
198
+ },
199
+ "TotalNew": "6",
200
+ "TotalUsed": "27",
201
+ "TotalCollectible": "2",
202
+ "TotalRefurbished": "0"
203
+ },
204
+ "BrowseNodes": {
205
+ "BrowseNode": [
206
+ {
207
+ "BrowseNodeId": "2278488051",
208
+ "Name": "コミック",
209
+ "Ancestors": {
210
+ "BrowseNode": {
211
+ "BrowseNodeId": "466280",
212
+ "Name": "コミック・ラノベ・BL",
213
+ "Ancestors": {
214
+ "BrowseNode": {
215
+ "BrowseNodeId": "465610",
216
+ "Name": "ジャンル別",
217
+ "IsCategoryRoot": "1",
218
+ "Ancestors": {
219
+ "BrowseNode": {
220
+ "BrowseNodeId": "465392",
221
+ "Name": "本"
222
+ }
223
+ }
224
+ }
225
+ }
226
+ }
227
+ }
228
+ },
229
+ {
230
+ "BrowseNodeId": "10805011",
231
+ "Name": "小学館",
232
+ "Ancestors": {
233
+ "BrowseNode": {
234
+ "BrowseNodeId": "465614",
235
+ "Name": "By Publishers",
236
+ "Ancestors": {
237
+ "BrowseNode": {
238
+ "BrowseNodeId": "465392",
239
+ "Name": "本"
240
+ }
241
+ }
242
+ }
243
+ }
244
+ }
245
+ ]
246
+ },
247
+ "AlternateVersions": {
248
+ "AlternateVersion": [
249
+ {
250
+ "ASIN": "B00N2QXHRW",
251
+ "Title": "からかい上手の高木さん(1) (ゲッサン少年サンデーコミックス)",
252
+ "Binding": "Kindle版"
253
+ },
254
+ {
255
+ "ASIN": "B06XDNHTX5",
256
+ "Title": "からかい上手の高木さん(1)【期間限定 無料お試し版】 (ゲッサン少年サンデーコミックス)",
257
+ "Binding": "Kindle版"
258
+ }
259
+ ]
260
+ }
261
+ }
@@ -0,0 +1,231 @@
1
+ {
2
+ "ASIN": "B06XDNHTX5",
3
+ "DetailPageURL": "https://www.amazon.co.jp/%E3%81%8B%E3%82%89%E3%81%8B%E3%81%84%E4%B8%8A%E6%89%8B%E3%81%AE%E9%AB%98%E6%9C%A8%E3%81%95%E3%82%93%EF%BC%88%EF%BC%91%EF%BC%89%E3%80%90%E6%9C%9F%E9%96%93%E9%99%90%E5%AE%9A-%E7%84%A1%E6%96%99%E3%81%8A%E8%A9%A6%E3%81%97%E7%89%88%E3%80%91-%E3%82%B2%E3%83%83%E3%82%B5%E3%83%B3%E5%B0%91%E5%B9%B4%E3%82%B5%E3%83%B3%E3%83%87%E3%83%BC%E3%82%B3%E3%83%9F%E3%83%83%E3%82%AF%E3%82%B9-%E5%B1%B1%E6%9C%AC%E5%B4%87%E4%B8%80%E6%9C%97-ebook/dp/B06XDNHTX5%3FSubscriptionId%3DAKIAIRTX3KGK3CZPXPOA%26tag%3Dr7kamura-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB06XDNHTX5",
4
+ "ItemLinks": {
5
+ "ItemLink": [
6
+ {
7
+ "Description": "Add To Wishlist",
8
+ "URL": "https://www.amazon.co.jp/gp/registry/wishlist/add-item.html%3Fasin.0%3DB06XDNHTX5%26SubscriptionId%3DAKIAIRTX3KGK3CZPXPOA%26tag%3Dr7kamura-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB06XDNHTX5"
9
+ },
10
+ {
11
+ "Description": "Tell A Friend",
12
+ "URL": "https://www.amazon.co.jp/gp/pdp/taf/B06XDNHTX5%3FSubscriptionId%3DAKIAIRTX3KGK3CZPXPOA%26tag%3Dr7kamura-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB06XDNHTX5"
13
+ },
14
+ {
15
+ "Description": "All Customer Reviews",
16
+ "URL": "https://www.amazon.co.jp/review/product/B06XDNHTX5%3FSubscriptionId%3DAKIAIRTX3KGK3CZPXPOA%26tag%3Dr7kamura-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB06XDNHTX5"
17
+ },
18
+ {
19
+ "Description": "All Offers",
20
+ "URL": "https://www.amazon.co.jp/gp/offer-listing/B06XDNHTX5%3FSubscriptionId%3DAKIAIRTX3KGK3CZPXPOA%26tag%3Dr7kamura-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D5143%26creativeASIN%3DB06XDNHTX5"
21
+ }
22
+ ]
23
+ },
24
+ "SmallImage": {
25
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/51Ei46HcOrL._SL75_.jpg",
26
+ "Height": {
27
+ "__content__": "75",
28
+ "Units": "pixels"
29
+ },
30
+ "Width": {
31
+ "__content__": "53",
32
+ "Units": "pixels"
33
+ }
34
+ },
35
+ "MediumImage": {
36
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/51Ei46HcOrL._SL160_.jpg",
37
+ "Height": {
38
+ "__content__": "160",
39
+ "Units": "pixels"
40
+ },
41
+ "Width": {
42
+ "__content__": "113",
43
+ "Units": "pixels"
44
+ }
45
+ },
46
+ "LargeImage": {
47
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/51Ei46HcOrL.jpg",
48
+ "Height": {
49
+ "__content__": "500",
50
+ "Units": "pixels"
51
+ },
52
+ "Width": {
53
+ "__content__": "353",
54
+ "Units": "pixels"
55
+ }
56
+ },
57
+ "ImageSets": {
58
+ "ImageSet": {
59
+ "SwatchImage": {
60
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/51Ei46HcOrL._SL30_.jpg",
61
+ "Height": {
62
+ "__content__": "30",
63
+ "Units": "pixels"
64
+ },
65
+ "Width": {
66
+ "__content__": "21",
67
+ "Units": "pixels"
68
+ }
69
+ },
70
+ "SmallImage": {
71
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/51Ei46HcOrL._SL75_.jpg",
72
+ "Height": {
73
+ "__content__": "75",
74
+ "Units": "pixels"
75
+ },
76
+ "Width": {
77
+ "__content__": "53",
78
+ "Units": "pixels"
79
+ }
80
+ },
81
+ "ThumbnailImage": {
82
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/51Ei46HcOrL._SL75_.jpg",
83
+ "Height": {
84
+ "__content__": "75",
85
+ "Units": "pixels"
86
+ },
87
+ "Width": {
88
+ "__content__": "53",
89
+ "Units": "pixels"
90
+ }
91
+ },
92
+ "TinyImage": {
93
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/51Ei46HcOrL._SL110_.jpg",
94
+ "Height": {
95
+ "__content__": "110",
96
+ "Units": "pixels"
97
+ },
98
+ "Width": {
99
+ "__content__": "78",
100
+ "Units": "pixels"
101
+ }
102
+ },
103
+ "MediumImage": {
104
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/51Ei46HcOrL._SL160_.jpg",
105
+ "Height": {
106
+ "__content__": "160",
107
+ "Units": "pixels"
108
+ },
109
+ "Width": {
110
+ "__content__": "113",
111
+ "Units": "pixels"
112
+ }
113
+ },
114
+ "LargeImage": {
115
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/51Ei46HcOrL.jpg",
116
+ "Height": {
117
+ "__content__": "500",
118
+ "Units": "pixels"
119
+ },
120
+ "Width": {
121
+ "__content__": "353",
122
+ "Units": "pixels"
123
+ }
124
+ },
125
+ "HiResImage": {
126
+ "URL": "https://images-fe.ssl-images-amazon.com/images/I/71iTVynXlCL.jpg",
127
+ "Height": {
128
+ "__content__": "1200",
129
+ "Units": "pixels"
130
+ },
131
+ "Width": {
132
+ "__content__": "847",
133
+ "Units": "pixels"
134
+ }
135
+ },
136
+ "Category": "primary"
137
+ }
138
+ },
139
+ "ItemAttributes": {
140
+ "Author": "山本崇一朗",
141
+ "Binding": "Kindle版",
142
+ "Format": "Kindle本",
143
+ "IsAdultProduct": "0",
144
+ "Label": "小学館",
145
+ "Languages": {
146
+ "Language": {
147
+ "Name": "日本語",
148
+ "Type": "Published"
149
+ }
150
+ },
151
+ "Manufacturer": "小学館",
152
+ "NumberOfPages": "161",
153
+ "ProductGroup": "eBooks",
154
+ "ProductTypeName": "ABIS_EBOOKS",
155
+ "PublicationDate": "2014-06-12",
156
+ "Publisher": "小学館",
157
+ "ReleaseDate": "2017-03-13",
158
+ "Studio": "小学館",
159
+ "Title": "からかい上手の高木さん(1)【期間限定 無料お試し版】 (ゲッサン少年サンデーコミックス)"
160
+ },
161
+ "BrowseNodes": {
162
+ "BrowseNode": [
163
+ {
164
+ "BrowseNodeId": "2278488051",
165
+ "Name": "コミック",
166
+ "Ancestors": {
167
+ "BrowseNode": {
168
+ "BrowseNodeId": "466280",
169
+ "Name": "コミック・ラノベ・BL",
170
+ "Ancestors": {
171
+ "BrowseNode": {
172
+ "BrowseNodeId": "465610",
173
+ "Name": "ジャンル別",
174
+ "IsCategoryRoot": "1",
175
+ "Ancestors": {
176
+ "BrowseNode": {
177
+ "BrowseNodeId": "465392",
178
+ "Name": "本"
179
+ }
180
+ }
181
+ }
182
+ }
183
+ }
184
+ }
185
+ },
186
+ {
187
+ "BrowseNodeId": "2430812051",
188
+ "Name": "少年コミック",
189
+ "Ancestors": {
190
+ "BrowseNode": {
191
+ "BrowseNodeId": "2293143051",
192
+ "Name": "コミック",
193
+ "Ancestors": {
194
+ "BrowseNode": {
195
+ "BrowseNodeId": "2275256051",
196
+ "Name": "Kindle本",
197
+ "Ancestors": {
198
+ "BrowseNode": {
199
+ "BrowseNodeId": "2250739051",
200
+ "Name": "カテゴリー別",
201
+ "IsCategoryRoot": "1",
202
+ "Ancestors": {
203
+ "BrowseNode": {
204
+ "BrowseNodeId": "2250738051",
205
+ "Name": "Kindleストア"
206
+ }
207
+ }
208
+ }
209
+ }
210
+ }
211
+ }
212
+ }
213
+ }
214
+ }
215
+ ]
216
+ },
217
+ "AlternateVersions": {
218
+ "AlternateVersion": [
219
+ {
220
+ "ASIN": "B00N2QXHRW",
221
+ "Title": "からかい上手の高木さん(1) (ゲッサン少年サンデーコミックス)",
222
+ "Binding": "Kindle版"
223
+ },
224
+ {
225
+ "ASIN": "4091250157",
226
+ "Title": "からかい上手の高木さん 1 (ゲッサン少年サンデーコミックススペシャル)",
227
+ "Binding": "コミック"
228
+ }
229
+ ]
230
+ }
231
+ }
@@ -56,6 +56,11 @@ module Rapa
56
56
  source.dig("ItemAttributes", "EAN")
57
57
  end
58
58
 
59
+ # @return [Boolean]
60
+ def ebook?
61
+ source.dig("ItemAttributes", "ProductGroup") == "eBooks"
62
+ end
63
+
59
64
  # @return [Integer, nil]
60
65
  def episode_sequence
61
66
  if value = source.dig("ItemAttributes", "EpisodeSequence")
@@ -1,3 +1,3 @@
1
1
  module Rapa
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "bundler", "~> 1.13"
24
24
  spec.add_development_dependency "petitest", "~> 0.3.1"
25
25
  spec.add_development_dependency "petitest-power_assert"
26
+ spec.add_development_dependency "petitest-spec"
26
27
  spec.add_development_dependency "rake", "~> 10.0"
27
28
  spec.add_development_dependency "timecop"
28
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rapa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: petitest-spec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rake
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -136,6 +150,8 @@ files:
136
150
  - README.md
137
151
  - Rakefile
138
152
  - circle.yml
153
+ - data/4091250157.json
154
+ - data/B06XDNHTX5.json
139
155
  - lib/rapa.rb
140
156
  - lib/rapa/alternate_version.rb
141
157
  - lib/rapa/browse_node.rb