Class: MoonropeClient::Responses::ValidationError

Inherits:
MoonropeClient::Response show all
Defined in:
lib/moonrope_client/responses/validation_error.rb

Instance Method Summary collapse

Methods inherited from MoonropeClient::Response

#data, #flags, #initialize, #status, #success?, #time

Constructor Details

This class inherits a constructor from MoonropeClient::Response

Instance Method Details

#errorsObject



5
6
7
# File 'lib/moonrope_client/responses/validation_error.rb', line 5

def errors
  data['errors']
end

#exception_messageObject



9
10
11
# File 'lib/moonrope_client/responses/validation_error.rb', line 9

def exception_message
  self.errors.join(', ')
end