Class: Fog::Google::Mock

Inherits:
Object
  • Object
show all
Defined in:
lib/fog/google/mock.rb

Class Method Summary collapse

Class Method Details

.etagObject



4
5
6
# File 'lib/fog/google/mock.rb', line 4

def self.etag
  hex(32)
end

.hex(length) ⇒ Object



8
9
10
11
# File 'lib/fog/google/mock.rb', line 8

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