Sha256: 8dba2b2e5437e0ac63fc430168b7e142f65cf4ce620ab188becc58fc8932c277

Contents?: true

Size: 478 Bytes

Versions: 2

Compression:

Stored size: 478 Bytes

Contents

module OmniAuth
  module Artsy
    module Config
      extend self

      attr_accessor :artsy_api_url

      def reset
        self.artsy_api_url = nil
      end

      reset
    end

    class << self
      def configure
        if block_given?
          yield(Config)
          reconfigure_strategy
        end
        Config
      end

      def reconfigure_strategy
        Strategies::Artsy.configure
      end

      def config
        Config
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
omniauth-artsy-0.2.3 lib/omniauth-artsy/config.rb
omniauth-artsy-0.2.2 lib/omniauth-artsy/config.rb