class MotionKeychain

Constants

SERVICE
STORE

Public Class Methods

get(key) click to toggle source
# File lib/project/motion-keychain.rb, line 10
def get(key)
  STORE.stringForKey(key.to_s)
end
remove(key) click to toggle source
# File lib/project/motion-keychain.rb, line 20
def remove(key)
  STORE.removeItemForKey(key.to_s)
  STORE.synchronize
  true
end
set(key, value) click to toggle source
# File lib/project/motion-keychain.rb, line 14
def set(key, value)
  STORE.setString(value, forKey: key.to_s)
  STORE.synchronize
  {key: value}
end
store() click to toggle source
# File lib/project/motion-keychain.rb, line 6
def store
  STORE
end