Method: Chef::WebUIUser.json_create

Defined in:
lib/chef/webui_user.rb

.json_create(o) ⇒ Object

Create a Chef::WebUIUser from JSON



109
110
111
112
113
114
115
116
117
118
# File 'lib/chef/webui_user.rb', line 109

def self.json_create(o)
  me = new
  me.name = o["name"]
  me.salt = o["salt"]
  me.password = o["password"]
  me.openid = o["openid"]
  me.admin = o["admin"]
  me.couchdb_rev = o["_rev"] if o.has_key?("_rev")
  me
end