Class: Bmc::Sdk::ErrorMessage
- Inherits:
-
Object
- Object
- Bmc::Sdk::ErrorMessage
- Defined in:
- lib/dtos.rb
Overview
ErrorMessage is used to transmit details on error responses.
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#validationErrors ⇒ Object
Returns the value of attribute validationErrors.
Instance Method Summary collapse
-
#initialize(message, validationErrors) ⇒ ErrorMessage
constructor
A new instance of ErrorMessage.
- #to_json(*a) ⇒ Object
Constructor Details
#initialize(message, validationErrors) ⇒ ErrorMessage
Returns a new instance of ErrorMessage.
10 11 12 13 |
# File 'lib/dtos.rb', line 10 def initialize(, validationErrors) @message = @validationErrors = validationErrors end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
9 10 11 |
# File 'lib/dtos.rb', line 9 def @message end |
#validationErrors ⇒ Object
Returns the value of attribute validationErrors.
9 10 11 |
# File 'lib/dtos.rb', line 9 def validationErrors @validationErrors end |
Instance Method Details
#to_json(*a) ⇒ Object
14 15 16 |
# File 'lib/dtos.rb', line 14 def to_json(*a) {message: @message, validationErrors: @validationErrors}.to_json(*a) end |