Sha256: cd728b93f212bc90de0de9d46ae71f22f029595cce6850868ac99b7aba11366b

Contents?: true

Size: 310 Bytes

Versions: 23

Compression:

Stored size: 310 Bytes

Contents

require 'fog/core'

module Fog
  module Google

    extend Fog::Provider

    service(:storage, 'google/storage', 'Storage')

    class Mock

      def self.etag
        hex(32)
      end

      def self.hex(length)
        max = ('f' * length).to_i(16)
        rand(max).to_s(16)
      end

    end
  end
end

Version data entries

23 entries across 23 versions & 10 rubygems

Version Path
fog-1.6.0 lib/fog/google.rb
fog-1.5.0 lib/fog/google.rb
fog-1.4.0 lib/fog/google.rb