Exception: RailsParallel::Rake::UnexpectedResponse
- Inherits:
-
StandardError
- Object
- StandardError
- RailsParallel::Rake::UnexpectedResponse
- Defined in:
- lib/rails_parallel/rake.rb
Instance Attribute Summary collapse
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
-
#received ⇒ Object
readonly
Returns the value of attribute received.
Instance Method Summary collapse
-
#initialize(expected, received) ⇒ UnexpectedResponse
constructor
A new instance of UnexpectedResponse.
- #to_s ⇒ Object
Constructor Details
#initialize(expected, received) ⇒ UnexpectedResponse
Returns a new instance of UnexpectedResponse.
12 13 14 15 |
# File 'lib/rails_parallel/rake.rb', line 12 def initialize(expected, received) @expected = expected @received = received end |
Instance Attribute Details
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
10 11 12 |
# File 'lib/rails_parallel/rake.rb', line 10 def expected @expected end |
#received ⇒ Object (readonly)
Returns the value of attribute received.
10 11 12 |
# File 'lib/rails_parallel/rake.rb', line 10 def received @received end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/rails_parallel/rake.rb', line 17 def to_s "Expected #{@expected}, got #{received}" end |