Class: Substation::Response::Failure

Inherits:
Substation::Response show all
Defined in:
lib/substation/response.rb

Overview

An errorneous Substation::Response

Instance Attribute Summary

Attributes inherited from Substation::Response

#env, #input, #output, #request

Instance Method Summary collapse

Methods inherited from Substation::Response

#initialize

Constructor Details

This class inherits a constructor from Substation::Response

Instance Method Details

#success?false

Tests wether this response was successful

Examples:


response = dispatcher.call(:failing_action, :some_input)
response.success? # => false

Returns:

  • (false)


143
144
145
# File 'lib/substation/response.rb', line 143

def success?
  false
end