Sha256: 5faed3a3d5b8fedeac82be00a7a4f6fe1a42a8d8bea0493fc2b96710c2bb5910
Contents?: true
Size: 557 Bytes
Versions: 8
Compression:
Stored size: 557 Bytes
Contents
module RDStation class << self attr_accessor :configuration HOST = 'https://api.rd.services'.freeze def configure self.configuration ||= Configuration.new self.configuration.base_host = HOST yield(configuration) end def host self.configuration&.base_host || HOST end end class Configuration attr_accessor :client_id, :client_secret, :base_host attr_reader :access_token_refresh_callback def on_access_token_refresh(&block) @access_token_refresh_callback = block end end end
Version data entries
8 entries across 8 versions & 1 rubygems