Class: Opticon::Failure::Base
- Inherits:
-
Object
- Object
- Opticon::Failure::Base
- Defined in:
- lib/opticon/failure.rb
Direct Known Subclasses
ConnectionFailure, ContentTestFailure, ResponseCodeTestFailure
Instance Attribute Summary collapse
-
#condition ⇒ Object
readonly
Returns the value of attribute condition.
-
#exception ⇒ Object
Returns the value of attribute exception.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri, condition, response) ⇒ Base
constructor
A new instance of Base.
- #to_s ⇒ Object
Constructor Details
#initialize(uri, condition, response) ⇒ Base
Returns a new instance of Base.
7 8 9 10 11 |
# File 'lib/opticon/failure.rb', line 7 def initialize(uri, condition, response) @uri = uri @condition = condition @response = response end |
Instance Attribute Details
#condition ⇒ Object (readonly)
Returns the value of attribute condition.
4 5 6 |
# File 'lib/opticon/failure.rb', line 4 def condition @condition end |
#exception ⇒ Object
Returns the value of attribute exception.
5 6 7 |
# File 'lib/opticon/failure.rb', line 5 def exception @exception end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
4 5 6 |
# File 'lib/opticon/failure.rb', line 4 def response @response end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
4 5 6 |
# File 'lib/opticon/failure.rb', line 4 def uri @uri end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/opticon/failure.rb', line 13 def to_s "#<#{self.class} [#{uri}] #{}>" end |