class Smooth::ErrorResponse

Public Class Methods

new(error_message, _request_object, *_args) click to toggle source
# File lib/smooth/response.rb, line 59
def initialize(error_message, _request_object, *_args)
  @error_message = error_message
end

Public Instance Methods

body() click to toggle source
# File lib/smooth/response.rb, line 67
def body
  {
    error: error_message
  }
end
success?() click to toggle source
# File lib/smooth/response.rb, line 63
def success?
  false
end