Class: SakaiInfo::MissingUser
Instance Attribute Summary
Attributes inherited from User
#dbrow, #eid, #email, #name, #type
Attributes inherited from SakaiObject
#id
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from User
#assignment_content_count, #assignment_contents, #assignment_submission_count, #assignment_submissions, count, count_by_realm_id_and_role_id, find!, find_by_name, find_by_realm_id_and_role_id, find_ids_by_name, get_eid, get_ids, get_user_id, #membership, #pools_serialization, #preferences_xml, #properties, query_by_name, #question_pool_count, #question_pools, #site_count, #sites_serialization, #workspace
Methods included from ModProps
included
Methods inherited from SakaiObject
#dbrow_only_serialization, #dbrow_serialization, descendants, #object_type_serialization, #serialize, #shell_serialization, #to_csv, #to_json, #to_yaml
Constructor Details
Returns a new instance of MissingUser.
259
260
261
262
263
264
|
# File 'lib/sakai-info/user.rb', line 259
def initialize(id)
@dbrow = {}
@id = id
@eid = id
end
|
Class Method Details
.all_serializations ⇒ Object
282
283
284
285
286
|
# File 'lib/sakai-info/user.rb', line 282
def self.all_serializations
[
:default,
]
end
|
.clear_cache ⇒ Object
254
255
256
|
# File 'lib/sakai-info/user.rb', line 254
def self.clear_cache
@@cache = {}
end
|
.find(id) ⇒ Object
266
267
268
|
# File 'lib/sakai-info/user.rb', line 266
def self.find(id)
@@cache[id] ||= MissingUser.new(id)
end
|
Instance Method Details
#default_serialization ⇒ Object
270
271
272
273
274
|
# File 'lib/sakai-info/user.rb', line 270
def default_serialization
{
"id" => "MISSING USER: #{self.id}",
}
end
|
#summary_serialization ⇒ Object
276
277
278
279
280
|
# File 'lib/sakai-info/user.rb', line 276
def summary_serialization
{
"id" => "MISSING USER: #{self.id}",
}
end
|