Exception: Beget::AnswerError
- Inherits:
-
StandardError
- Object
- StandardError
- Beget::AnswerError
- Defined in:
- lib/beget_api.rb
Overview
Answer error
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ AnswerError
constructor
A new instance of AnswerError.
- #to_s ⇒ Object
Constructor Details
#initialize(errors) ⇒ AnswerError
Returns a new instance of AnswerError.
102 103 104 105 |
# File 'lib/beget_api.rb', line 102 def initialize(errors) super() @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
100 101 102 |
# File 'lib/beget_api.rb', line 100 def errors @errors end |
Instance Method Details
#to_s ⇒ Object
107 108 109 |
# File 'lib/beget_api.rb', line 107 def to_s @errors.map { |e| %(#{e['error_code']}: #{e['error_text']}) }.join('; ') end |