Class: NSISam::Server

Inherits:
Sinatra::Application
  • Object
show all
Defined in:
lib/nsisam/fake_server.rb

Instance Method Summary collapse

Instance Method Details

#generate_keyObject



12
13
14
# File 'lib/nsisam/fake_server.rb', line 12

def generate_key
  rand.to_s
end

#storageObject



8
9
10
# File 'lib/nsisam/fake_server.rb', line 8

def storage
  @@storage ||= {}
end