Class: Rack::ClientSpec::Result
- Inherits:
-
Object
- Object
- Rack::ClientSpec::Result
- Defined in:
- lib/rack/client_spec/result.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(error = nil) ⇒ Result
constructor
A new instance of Result.
- #success? ⇒ Boolean
Constructor Details
#initialize(error = nil) ⇒ Result
Returns a new instance of Result.
7 8 9 |
# File 'lib/rack/client_spec/result.rb', line 7 def initialize(error = nil) @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
5 6 7 |
# File 'lib/rack/client_spec/result.rb', line 5 def error @error end |
Instance Method Details
#success? ⇒ Boolean
11 12 13 |
# File 'lib/rack/client_spec/result.rb', line 11 def success? @error.nil? end |