Class: ScalarRubyTest::Webhooks::WebhookEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/amritk-scalar-test/webhooks.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#payloadObject (readonly)

Returns the value of attribute payload.



14
15
16
# File 'lib/amritk-scalar-test/webhooks.rb', line 14

def payload
  @payload
end

#typeObject (readonly)

Returns the value of attribute type.



14
15
16
# File 'lib/amritk-scalar-test/webhooks.rb', line 14

def type
  @type
end