Class: PactBroker::Api::Decorators::WebhookExecutionResultDecorator::HTTPResponseDecorator
- Inherits:
-
BaseDecorator
- Object
- Roar::Decorator
- BaseDecorator
- PactBroker::Api::Decorators::WebhookExecutionResultDecorator::HTTPResponseDecorator
show all
- Defined in:
- lib/pact_broker/api/decorators/webhook_execution_result_decorator.rb
Instance Method Summary
collapse
#hal_browser_url, #latest_pact_url, #latest_pacts_url, #latest_version_url, #pact_url, #pact_url_from_params, #pact_versions_url, #pacticipant_url, #pacticipants_url, #tag_url, #tags_url, #url_encode, #version_url, #versions_url, #webhook_execution_url, #webhook_url, #webhooks_for_pact_url, #webhooks_url
Instance Method Details
#body ⇒ Object
30
31
32
33
34
35
36
|
# File 'lib/pact_broker/api/decorators/webhook_execution_result_decorator.rb', line 30
def body
begin
::JSON.parse(represented.body)
rescue StandardError => e
represented.body
end
end
|
23
24
25
26
27
28
|
# File 'lib/pact_broker/api/decorators/webhook_execution_result_decorator.rb', line 23
def
= represented.to_hash
.keys.each_with_object({}) do | name, |
[name] = [name].join(", ")
end
end
|