Class: Square::Webhooks::Client
- Inherits:
-
Object
- Object
- Square::Webhooks::Client
- Defined in:
- lib/square/webhooks/client.rb
Instance Method Summary collapse
- #event_types ⇒ Square::EventTypes::Client
- #initialize(client:) ⇒ void constructor
- #subscriptions ⇒ Square::Subscriptions::Client
Constructor Details
#initialize(client:) ⇒ void
9 10 11 |
# File 'lib/square/webhooks/client.rb', line 9 def initialize(client:) @client = client end |
Instance Method Details
#event_types ⇒ 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 |
#subscriptions ⇒ Square::Subscriptions::Client
19 20 21 |
# File 'lib/square/webhooks/client.rb', line 19 def subscriptions @subscriptions ||= Square::Webhooks::Subscriptions::Client.new(client: @client) end |