Sha256: 791fc9526420c6313c65c737c5a24852e07cfd4d664ea9223ba149b20409dc03

Contents?: true

Size: 571 Bytes

Versions: 6

Compression:

Stored size: 571 Bytes

Contents

module Fasterer
  module Github
    class << self
      attr_accessor :configuration
    end

    def self.configure
      yield(configuration)
    end

    def self.configuration
      @configuration ||= Configuration.new
    end

    def self.reset_configuration
      Fasterer::Github.configuration = nil
      Fasterer::Github.configure {}
    end

    class Configuration
      attr_accessor :client_id, :client_secret, :access_token

      def initialize
        @client_id = nil
        @client_secret = nil
        @access_token = nil
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fasterer-github-0.2.3 lib/fasterer/github/configuration.rb
fasterer-github-0.2.2 lib/fasterer/github/configuration.rb
fasterer-github-0.2.1 lib/fasterer/github/configuration.rb
fasterer-github-0.2.0 lib/fasterer/github/configuration.rb
fasterer-github-0.1.1 lib/fasterer/github/configuration.rb
fasterer-github-0.1.0 lib/fasterer/github/configuration.rb