class Rapa::Responses::ListItemsResponse
Public Instance Methods
error()
click to toggle source
@return [Rapa::Error]
# 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?()
click to toggle source
@return [Boolean]
# File lib/rapa/responses/multiple_resources_response/list_items_response.rb, line 12 def has_error? !error.nil? end
has_valid_request?()
click to toggle source
@return [Boolean]
# 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
Private Instance Methods
resource_class()
click to toggle source
@note Override
# File lib/rapa/responses/multiple_resources_response/list_items_response.rb, line 24 def resource_class ::Rapa::Resources::ItemResource end
source_or_sources()
click to toggle source
@note Override
# File lib/rapa/responses/multiple_resources_response/list_items_response.rb, line 29 def source_or_sources body.dig("ItemLookupResponse", "Items", "Item") end