Class: ScalarRubyTest::Webhooks::WebhookEvent
- Inherits:
-
Object
- Object
- ScalarRubyTest::Webhooks::WebhookEvent
- Defined in:
- lib/amritk-scalar-test/webhooks.rb
Instance Attribute Summary collapse
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, payload:) ⇒ WebhookEvent
constructor
A new instance of WebhookEvent.
Constructor Details
#initialize(type:, payload:) ⇒ WebhookEvent
Returns a new instance of WebhookEvent.
16 17 18 19 |
# File 'lib/amritk-scalar-test/webhooks.rb', line 16 def initialize(type:, payload:) @type = type @payload = payload end |
Instance Attribute Details
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
14 15 16 |
# File 'lib/amritk-scalar-test/webhooks.rb', line 14 def payload @payload end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
14 15 16 |
# File 'lib/amritk-scalar-test/webhooks.rb', line 14 def type @type end |