Class: Rapa::Responses::ListItemsResponse
Instance Method Summary
collapse
#each, #resources
#body, #headers, #initialize, #status
Instance Method Details
5
6
7
8
9
|
# File 'lib/rapa/responses/multiple_resources_response/list_items_response.rb', line 5
def error
if value = body.dig("ItemLookupErrorResponse", "Error")
::Rapa::Error.new(value)
end
end
|
#has_error? ⇒ Boolean
12
13
14
|
# File 'lib/rapa/responses/multiple_resources_response/list_items_response.rb', line 12
def has_error?
!error.nil?
end
|
#has_valid_request? ⇒ Boolean
17
18
19
|
# File 'lib/rapa/responses/multiple_resources_response/list_items_response.rb', line 17
def has_valid_request?
body.dig("ItemLookupResponse", "Items", "Request", "IsValid") == "True"
end
|