Class: PactBroker::Domain::WebhookExecutionResult
- Inherits:
-
Object
- Object
- PactBroker::Domain::WebhookExecutionResult
- Defined in:
- lib/pact_broker/domain/webhook_execution_result.rb
Instance Method Summary collapse
- #error ⇒ Object
-
#initialize(request, response, logs, error = nil) ⇒ WebhookExecutionResult
constructor
A new instance of WebhookExecutionResult.
- #logs ⇒ Object
- #request ⇒ Object
- #response ⇒ Object
- #success? ⇒ Boolean
Constructor Details
#initialize(request, response, logs, error = nil) ⇒ WebhookExecutionResult
Returns a new instance of WebhookExecutionResult.
7 8 9 10 11 12 |
# File 'lib/pact_broker/domain/webhook_execution_result.rb', line 7 def initialize request, response, logs, error = nil @request = request @response = response @logs = logs @error = error end |
Instance Method Details
#error ⇒ Object
26 27 28 |
# File 'lib/pact_broker/domain/webhook_execution_result.rb', line 26 def error @error end |
#logs ⇒ Object
30 31 32 |
# File 'lib/pact_broker/domain/webhook_execution_result.rb', line 30 def logs @logs end |
#request ⇒ Object
18 19 20 |
# File 'lib/pact_broker/domain/webhook_execution_result.rb', line 18 def request @request end |
#response ⇒ Object
22 23 24 |
# File 'lib/pact_broker/domain/webhook_execution_result.rb', line 22 def response @response end |
#success? ⇒ Boolean
14 15 16 |
# File 'lib/pact_broker/domain/webhook_execution_result.rb', line 14 def success? !@response.nil? && @response.code.to_i < 300 end |