Class: AmazonFlexPay::API::BaseRequest::ErrorResponse

Inherits:
Model
  • Object
show all
Defined in:
lib/amazon_flex_pay/api/base_request.rb

Defined Under Namespace

Classes: Error

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Model

attribute, attribute_names, collection_attribute, complex_attribute, enumerated_attribute, #initialize, #to_hash

Constructor Details

This class inherits a constructor from AmazonFlexPay::Model

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



59
60
61
# File 'lib/amazon_flex_pay/api/base_request.rb', line 59

def errors
  @errors
end

Class Method Details

.from_xml(xml) ⇒ Object



55
56
57
# File 'lib/amazon_flex_pay/api/base_request.rb', line 55

def self.from_xml(xml)
  new(MultiXml.parse(xml)['Response'])
end