Class: Moogle::WebhookTarget

Inherits:
Target
  • Object
show all
Defined in:
lib/moogle/models/webhook_target.rb

Instance Method Summary collapse

Methods inherited from Target

default_repository_name

Instance Method Details

#validate_optionsObject



10
11
12
13
14
15
# File 'lib/moogle/models/webhook_target.rb', line 10

def validate_options
  uri = Addressable::URI.parse options['webhook_uri']
  return false, 'options webhook_uri not set' if uri.nil?
  return false, 'options webhook_uri must be absolute URI' if uri.relative?
  return true
end