Sha256: f0a4ca9e3ca4ea307fb69d1bf6b2512aae703b663212a7c75b95d3a01b77673f

Contents?: true

Size: 394 Bytes

Versions: 6

Compression:

Stored size: 394 Bytes

Contents

module RDStation
  class << self
    attr_accessor :configuration

    def configure
      self.configuration ||= Configuration.new
      yield(configuration)
    end
  end
  
  class Configuration
    attr_accessor :client_id, :client_secret
    attr_reader :access_token_refresh_callback

    def on_access_token_refresh(&block)
      @access_token_refresh_callback = block
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rdstation-ruby-client-2.5.1 lib/rdstation.rb
rdstation-ruby-client-2.5.0 lib/rdstation.rb
rdstation-ruby-client-2.4.0 lib/rdstation.rb
rdstation-ruby-client-2.3.1 lib/rdstation.rb
rdstation-ruby-client-2.3.0 lib/rdstation.rb
rdstation-ruby-client-2.2.0 lib/rdstation.rb