Exception: FileTurn::BadRequestError
- Inherits:
-
FileTurnError
- Object
- Exception
- FileTurnError
- FileTurn::BadRequestError
- Defined in:
- lib/fileturn/errors.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(resp) ⇒ BadRequestError
constructor
A new instance of BadRequestError.
Constructor Details
#initialize(resp) ⇒ BadRequestError
Returns a new instance of BadRequestError.
10 11 12 |
# File 'lib/fileturn/errors.rb', line 10 def initialize(resp) @errors = resp['errors'] end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
8 9 10 |
# File 'lib/fileturn/errors.rb', line 8 def errors @errors end |