Module: RestfulError::Helper

Included in:
BaseError
Defined in:
lib/restful_error.rb

Instance Method Summary collapse

Instance Method Details

#response_messageObject



17
18
19
20
# File 'lib/restful_error.rb', line 17

def response_message
  return @response_message unless @response_message.nil?
  @response_message = RestfulError.localized_phrase(self.class.name, status_data)
end

#status_dataObject



14
15
16
# File 'lib/restful_error.rb', line 14

def status_data
  @status_data ||= RestfulError.build_status_from_symbol_or_code(http_status)
end