Exception: BucketSdk::Models::ValidationError
- Defined in:
- lib/bucket_sdk/models/validation_error.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
Instance Method Summary collapse
-
#initialize(details) ⇒ ValidationError
constructor
A new instance of ValidationError.
- #to_h ⇒ Object
Constructor Details
#initialize(details) ⇒ ValidationError
Returns a new instance of ValidationError.
8 9 10 11 |
# File 'lib/bucket_sdk/models/validation_error.rb', line 8 def initialize(details) @details = details super("Validation error: #{details.map { |d| "#{d["msg"]} at #{d["loc"].join(".")}" }.join(", ")}") end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
6 7 8 |
# File 'lib/bucket_sdk/models/validation_error.rb', line 6 def details @details end |
Instance Method Details
#to_h ⇒ Object
13 14 15 16 17 |
# File 'lib/bucket_sdk/models/validation_error.rb', line 13 def to_h { details: details } end |