Sha256: cdf1f8a5c45eb28c43b1757fa792570f8b875aaab90f0b58dcc19b105a9f72f6
Contents?: true
Size: 578 Bytes
Versions: 7
Compression:
Stored size: 578 Bytes
Contents
# frozen_string_literal: true module Strava module Webhooks module Config extend self ATTRIBUTES = %i[ endpoint client_id client_secret ].freeze attr_accessor(*Config::ATTRIBUTES) def reset self.endpoint = 'https://www.strava.com/api/v3' self.client_id = nil self.client_secret = nil end end class << self def configure block_given? ? yield(Config) : Config end def config Config end end end end Strava::Webhooks::Config.reset
Version data entries
7 entries across 7 versions & 1 rubygems