Class: PactBroker::Webhooks::WebhookHeader

Inherits:
Sequel::Model
  • Object
show all
Defined in:
lib/pact_broker/webhooks/webhook.rb

Class Method Summary collapse

Class Method Details

.from_domain(name, value, webhook_id) ⇒ Object



78
79
80
81
82
83
84
# File 'lib/pact_broker/webhooks/webhook.rb', line 78

def self.from_domain name, value, webhook_id
  db_header = new
  db_header.name = name
  db_header.value = value
  db_header.webhook_id = webhook_id
  db_header
end