Class: Square::Webhooks::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/square/webhooks/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ void

Parameters:



9
10
11
# File 'lib/square/webhooks/client.rb', line 9

def initialize(client:)
  @client = client
end

Instance Method Details

#event_typesSquare::EventTypes::Client

Returns:

  • (Square::EventTypes::Client)


14
15
16
# File 'lib/square/webhooks/client.rb', line 14

def event_types
  @event_types ||= Square::Webhooks::EventTypes::Client.new(client: @client)
end

#subscriptionsSquare::Subscriptions::Client



19
20
21
# File 'lib/square/webhooks/client.rb', line 19

def subscriptions
  @subscriptions ||= Square::Webhooks::Subscriptions::Client.new(client: @client)
end