Exception: StarkCore::Error::InputErrors
- Inherits:
-
StarkCoreError
- Object
- StandardError
- StarkCoreError
- StarkCore::Error::InputErrors
- Defined in:
- lib/error.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Attributes inherited from StarkCoreError
Instance Method Summary collapse
-
#initialize(content) ⇒ InputErrors
constructor
A new instance of InputErrors.
Constructor Details
#initialize(content) ⇒ InputErrors
Returns a new instance of InputErrors.
26 27 28 29 30 31 32 33 |
# File 'lib/error.rb', line 26 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.
25 26 27 |
# File 'lib/error.rb', line 25 def errors @errors end |