Exception: StarkBank::Error::InputErrors
- Inherits:
-
StandardError
- Object
- StandardError
- StarkBank::Error::InputErrors
- Defined in:
- lib/error.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(content) ⇒ InputErrors
constructor
A new instance of InputErrors.
Constructor Details
#initialize(content) ⇒ InputErrors
Returns a new instance of InputErrors.
18 19 20 21 22 23 24 25 26 |
# File 'lib/error.rb', line 18 def initialize(content) errors = [] content.each do |error| errors << Error.new(error['code'], error['message']) end @errors = errors super(content.to_json) end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
17 18 19 |
# File 'lib/error.rb', line 17 def errors @errors end |