rapa 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/rapa/responses/list_items_response.rb +17 -0
- data/lib/rapa/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d058890cd8319a14d3c8144f70500958ff24e95
|
4
|
+
data.tar.gz: 59f3b8daa22daef074f6b2ba55bd808fad864715
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fd8ef923e17602b3015217e7b0a00f27f3724b10657f278eaa0d85879eb3ffe7474693085fb7a8d0653915198811fbc48f93b91b678df0807b0986d38b788aa
|
7
|
+
data.tar.gz: 4d9f8eccd0bf3c83c028eef1a7603d92c86622cd7b971f20561b8d29d176200f303eb04e08ed71eda2d445fc9f013f47d4d2ac355c8a4b9f4153c492044c6fa8
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,23 @@
|
|
1
1
|
module Rapa
|
2
2
|
module Responses
|
3
3
|
class ListItemsResponse < BaseResponse
|
4
|
+
# @return [Rapa::Error]
|
5
|
+
def error
|
6
|
+
if value = body.dig("ItemLookupErrorResponse", "Error")
|
7
|
+
::Rapa::Error.new(value)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
# @return [Boolean]
|
12
|
+
def has_error?
|
13
|
+
!error.nil?
|
14
|
+
end
|
15
|
+
|
16
|
+
# @return [Boolean]
|
17
|
+
def has_valid_request?
|
18
|
+
body.dig("ItemLookupResponse", "Items", "Request", "IsValid") == "True"
|
19
|
+
end
|
20
|
+
|
4
21
|
private
|
5
22
|
|
6
23
|
# @note Override
|
data/lib/rapa/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rapa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
193
|
version: '0'
|
194
194
|
requirements: []
|
195
195
|
rubyforge_project:
|
196
|
-
rubygems_version: 2.
|
196
|
+
rubygems_version: 2.6.11
|
197
197
|
signing_key:
|
198
198
|
specification_version: 4
|
199
199
|
summary: An API client library for Amazon Product Advertising API, written in Ruby.
|