Sha256: 3824b2661b9e5fe5e2504c85ff650bbf0f52d61f6588e4d54424469092d44ce5

Contents?: true

Size: 463 Bytes

Versions: 22

Compression:

Stored size: 463 Bytes

Contents

require "delegate"

module Fog
  module Brightbox
    class Storage
      class Config < SimpleDelegator
        def initialize(config)
          super
          @config = config
          raise ArgumentError unless required_args_available?
        end

        private

        def required_args_available?
          return false unless @config.client_id
          return false unless @config.client_secret
          true
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
fog-brightbox-1.11.0 lib/fog/brightbox/storage/config.rb
fog-brightbox-1.10.0 lib/fog/brightbox/storage/config.rb
fog-brightbox-1.9.1 lib/fog/brightbox/storage/config.rb
fog-brightbox-1.9.0 lib/fog/brightbox/storage/config.rb
fog-brightbox-1.8.2 lib/fog/brightbox/storage/config.rb
fog-brightbox-1.8.1 lib/fog/brightbox/storage/config.rb
fog-brightbox-1.8.0 lib/fog/brightbox/storage/config.rb
fog-brightbox-1.7.3 lib/fog/brightbox/storage/config.rb
fog-brightbox-1.7.2 lib/fog/brightbox/storage/config.rb
fog-brightbox-1.7.1 lib/fog/brightbox/storage/config.rb
fog-brightbox-1.7.0 lib/fog/brightbox/storage/config.rb
fog-brightbox-1.6.0 lib/fog/brightbox/storage/config.rb
fog-brightbox-1.5.0 lib/fog/brightbox/storage/config.rb
fog-brightbox-1.5.0.rc1 lib/fog/brightbox/storage/config.rb
fog-brightbox-1.4.2 lib/fog/brightbox/storage/config.rb
fog-brightbox-1.4.1 lib/fog/brightbox/storage/config.rb
fog-brightbox-1.4.0 lib/fog/brightbox/storage/config.rb
fog-brightbox-1.3.0 lib/fog/brightbox/storage/config.rb
fog-brightbox-1.2.0 lib/fog/brightbox/storage/config.rb
fog-brightbox-1.1.0 lib/fog/brightbox/storage/config.rb