Initializes a new Webhook object.
Parameters:
The underlying Webhook object.
Raises:
If the model is not a Coinbase::Client::Webhook.
74 75 76 77 78
# File 'lib/coinbase/webhook.rb', line 74 def initialize(model) raise ArgumentError, 'model must be a Webhook' unless model.is_a?(Coinbase::Client::Webhook) @model = model end