Class: Moogle::Requests::PushWebhookPing
- Inherits:
-
Object
- Object
- Moogle::Requests::PushWebhookPing
- 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
-
#data ⇒ Object
Set by Kind Specific Renderer.
-
#target_id ⇒ Object
House Keeping fields.
- #valid_webhook_uri? ⇒ Boolean
-
#webhook_uri ⇒ Object
Set by Target’s Options.
Instance Method Details
#data ⇒ Object
Set by Kind Specific Renderer
29 |
# File 'lib/moogle/requests/push_webhook_ping.rb', line 29 attribute :data, String |
#target_id ⇒ Object
House Keeping fields
22 |
# File 'lib/moogle/requests/push_webhook_ping.rb', line 22 attribute :target_id, Integer |
#valid_webhook_uri? ⇒ 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_uri ⇒ Object
Set by Target’s Options
35 |
# File 'lib/moogle/requests/push_webhook_ping.rb', line 35 attribute :webhook_uri, String |