Class: Fog::Google::Mock

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

Class Method Summary collapse

Class Method Details

.etagObject



15
16
17
# File 'lib/fog/providers/google.rb', line 15

def self.etag
  hex(32)
end

.hex(length) ⇒ Object



19
20
21
22
# File 'lib/fog/providers/google.rb', line 19

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