Class: Fog::Google::Mock

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

Class Method Summary collapse

Class Method Details

.etagObject



13
14
15
# File 'lib/fog/google/core.rb', line 13

def self.etag
  hex(32)
end

.hex(length) ⇒ Object



17
18
19
20
# File 'lib/fog/google/core.rb', line 17

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