Class: ActiveWebhook::Hook
- Inherits:
-
Struct
- Object
- Struct
- ActiveWebhook::Hook
- Defined in:
- lib/active_webhook/hook.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
4 5 6 |
# File 'lib/active_webhook/hook.rb', line 4 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers
4 5 6 |
# File 'lib/active_webhook/hook.rb', line 4 def headers @headers end |
#url ⇒ Object
Returns the value of attribute url
4 5 6 |
# File 'lib/active_webhook/hook.rb', line 4 def url @url end |
Class Method Details
.from_h(url: '', headers: {}, body: "") ⇒ Object
5 6 7 |
# File 'lib/active_webhook/hook.rb', line 5 def self.from_h(url: '', headers: {}, body: "") new url, headers, body end |