Class: PigMediaServer::UserData

Inherits:
Object
  • Object
show all
Defined in:
lib/pig-media-server/web.rb

Class Method Summary collapse

Class Method Details

.load(user_id, key) ⇒ Object



28
29
30
# File 'lib/pig-media-server/web.rb', line 28

def self.load user_id, key
  AppData.find("user_data/#{user_id}/#{key}")
end

.save(user_id, key, value) ⇒ Object



24
25
26
# File 'lib/pig-media-server/web.rb', line 24

def self.save user_id, key, value
  AppData.set("user_data/#{user_id}/#{key}", value)
end