Class: OnlinePayments::SDK::Webhooks::WebhooksHelperBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/onlinepayments/sdk/webhooks/webhooks_helper_builder.rb

Overview

Builder for a WebhooksHelper object.

Instance Method Summary collapse

Instance Method Details

#buildObject

Creates a fully initialized WebhooksHelper object



20
21
22
# File 'lib/onlinepayments/sdk/webhooks/webhooks_helper_builder.rb', line 20

def build
  WebhooksHelper.new(@marshaller, @secret_key_store)
end

#with_marshaller(marshaller) ⇒ Object

Sets the Marshaller to use.



8
9
10
11
# File 'lib/onlinepayments/sdk/webhooks/webhooks_helper_builder.rb', line 8

def with_marshaller(marshaller)
  @marshaller = marshaller
  self
end

#with_secret_key_store(secret_key_store) ⇒ Object

Sets the SecretkeyStore to use.



14
15
16
17
# File 'lib/onlinepayments/sdk/webhooks/webhooks_helper_builder.rb', line 14

def with_secret_key_store(secret_key_store)
  @secret_key_store = secret_key_store
  self
end