class UserModelItem
# ———————————————————————- A User. Users consist of a UNIX-style username, an ID number, a full name, and a timestamp marking when they were created.
Public Class Methods
fill(model, item_path, args)
click to toggle source
Calls superclass method
# File doc/examples/user_group/model.rb, line 143 def self.fill(model, item_path, args) super properties[:created].set(model, item_path, Time.now.to_s) end
ident_key()
click to toggle source
Use :username entry in Hash as primary key
# File doc/examples/user_group/model.rb, line 139 def self.ident_key :username end
Public Instance Methods
created()
click to toggle source
The timestamp when the user was created.
# File doc/examples/user_group/model.rb, line 178 def created ts_property(:created) end
full_name()
click to toggle source
The full name of the user, e.g. ‘John Q. Public’.
# File doc/examples/user_group/model.rb, line 167 def full_name property(:full_name) end
full_name=(val)
click to toggle source
# File doc/examples/user_group/model.rb, line 171 def full_name=(val) set_property(:full_name, val) end
id()
click to toggle source
The ID number of the user, e.g. 1000.
# File doc/examples/user_group/model.rb, line 156 def id integer_property(:id) end
id=(val)
click to toggle source
# File doc/examples/user_group/model.rb, line 160 def id=(val) set_property(:id, val) end