Exception: RailsParallel::Rake::UnexpectedResponse

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rails_parallel/rake.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#expectedObject (readonly)

Returns the value of attribute expected.



10
11
12
# File 'lib/rails_parallel/rake.rb', line 10

def expected
  @expected
end

#receivedObject (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_sObject



17
18
19
# File 'lib/rails_parallel/rake.rb', line 17

def to_s
  "Expected #{@expected}, got #{received}"
end