Module: Strava::Webhooks

Defined in:
lib/strava/webhooks/client.rb,
lib/strava/webhooks/config.rb,
lib/strava/webhooks/models/event.rb,
lib/strava/webhooks/models/challenge.rb,
lib/strava/webhooks/models/subscription.rb

Defined Under Namespace

Modules: Config, Models Classes: Client

Class Method Summary collapse

Class Method Details

.configModule

Returns the current Webhooks configuration.

Returns:

  • (Module)

    The Config module



72
73
74
# File 'lib/strava/webhooks/config.rb', line 72

def config
  Config
end

.configure {|Config| ... } ⇒ Module

Configure the Webhooks client with a block.

Examples:

Strava::Webhooks.configure do |config|
  config.client_id = '12345'
  config.client_secret = 'your_client_secret'
end

Yields:

  • (Config)

    Yields the configuration module for setup

Returns:

  • (Module)

    The Config module



63
64
65
# File 'lib/strava/webhooks/config.rb', line 63

def configure
  block_given? ? yield(Config) : Config
end