class PactBroker::Api::Decorators::WebhookDecorator

Public Instance Methods

from_json(represented) click to toggle source
Calls superclass method
# File lib/pact_broker/api/decorators/webhook_decorator.rb, line 110
def from_json(represented)
  super.tap do | webhook |
    if webhook.events == nil
      webhook.events = [PactBroker::Webhooks::WebhookEvent.new(name: PactBroker::Webhooks::WebhookEvent::DEFAULT_EVENT_NAME)]
    end
  end
end