Class: Moogle::Requests::PushWebhookPing

Inherits:
Object
  • Object
show all
Includes:
Aequitas, Serf::Message, Serf::More::UuidFields, Virtus
Defined in:
lib/moogle/requests/push_webhook_ping.rb

Overview

A request to send a webhook post.

Instance Method Summary collapse

Instance Method Details

#dataObject

Set by Kind Specific Renderer



29
# File 'lib/moogle/requests/push_webhook_ping.rb', line 29

attribute :data, String

#target_idObject

House Keeping fields



22
# File 'lib/moogle/requests/push_webhook_ping.rb', line 22

attribute :target_id, Integer

#valid_webhook_uri?Boolean

Returns:

  • (Boolean)


40
41
42
43
44
45
# File 'lib/moogle/requests/push_webhook_ping.rb', line 40

def valid_webhook_uri?
  uri = Addressable::URI.parse webhook_uri
  return false, "webhook_uri not set" if uri.nil?
  return false, "webhook_uri must be an absolute URI" if uri.relative?
  return true
end

#webhook_uriObject

Set by Target’s Options



35
# File 'lib/moogle/requests/push_webhook_ping.rb', line 35

attribute :webhook_uri, String