Exception: Spreedly::XmlErrorsList
- Includes:
- ErrorsParser
- Defined in:
- lib/spreedly/error.rb
Direct Known Subclasses
AuthenticationError, NotFoundError, PaymentRequiredError, TransactionCreationError
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(xml_doc) ⇒ XmlErrorsList
constructor
A new instance of XmlErrorsList.
- #message ⇒ Object
Methods included from ErrorsParser
Constructor Details
#initialize(xml_doc) ⇒ XmlErrorsList
Returns a new instance of XmlErrorsList.
9 10 11 |
# File 'lib/spreedly/error.rb', line 9 def initialize(xml_doc) @errors = errors_from(xml_doc) end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
6 7 8 |
# File 'lib/spreedly/error.rb', line 6 def errors @errors end |
Instance Method Details
#message ⇒ Object
13 14 15 |
# File 'lib/spreedly/error.rb', line 13 def @errors.map { |each| each[:message] }.join("\n") end |