Class: Square::Webhooks::Client

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

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Square::Webhooks::Client



7
8
9
# File 'lib/square/webhooks/client.rb', line 7

def initialize(client:)
  @client = client
end

Instance Method Details

#event_typesSquare::EventTypes::Client

Returns:

  • (Square::EventTypes::Client)


12
13
14
# File 'lib/square/webhooks/client.rb', line 12

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

#subscriptionsSquare::Subscriptions::Client



17
18
19
# File 'lib/square/webhooks/client.rb', line 17

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