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