Class: Bmc::Sdk::ErrorMessage

Inherits:
Object
  • Object
show all
Defined in:
lib/dtos.rb

Overview

ErrorMessage is used to transmit details on error responses.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, validationErrors) ⇒ ErrorMessage

Returns a new instance of ErrorMessage.



10
11
12
13
# File 'lib/dtos.rb', line 10

def initialize(message, validationErrors)
  @message = message
  @validationErrors = validationErrors
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



9
10
11
# File 'lib/dtos.rb', line 9

def message
  @message
end

#validationErrorsObject

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