Class: JFoundry::V2::User
- Inherits:
-
Model
- Object
- Model
- JFoundry::V2::User
show all
- Defined in:
- lib/jfoundry/v2/user.rb
Instance Attribute Summary collapse
Attributes inherited from Model
#cache, #changes, #created_at, #diff, #updated_at
Attributes included from ModelMagic
#scoped_organization, #scoped_space
Instance Method Summary
collapse
Methods inherited from Model
#attribute_for_error, #changed?, #create, #create!, #delete, #eql?, #exists?, #hash, inherited, #initialize, #inspect, #invalidate!, #manifest, #object_name, objects, #partial?, #persisted?, #plural_object_name, #query_target, #to_key, #to_param, #update!
Methods included from ModelMagic
#attributes, #defaults, #inherited, #object_name, params_from, #plural_object_name, #scoped_to_organization, #scoped_to_space, #to_many_relations, #to_one_relations
#queryable_by
#to_many
#to_one
#attribute
#has_summary
#add_client_methods
Instance Attribute Details
#emails ⇒ Object
optional metadata from UAA
36
37
38
|
# File 'lib/jfoundry/v2/user.rb', line 36
def emails
@emails
end
|
#name ⇒ Object
optional metadata from UAA
36
37
38
|
# File 'lib/jfoundry/v2/user.rb', line 36
def name
@name
end
|
Instance Method Details
#delete!(options = {}) ⇒ Object
79
80
81
82
83
84
|
# File 'lib/jfoundry/v2/user.rb', line 79
def delete! (options = {})
super(options)
p "delete!............"
true
end
|
#email ⇒ Object
38
39
40
41
42
43
44
45
46
47
48
49
|
# File 'lib/jfoundry/v2/user.rb', line 38
def email
return unless @emails && @emails.first
@emails.first[:value]
end
|
#family_name ⇒ Object
61
62
63
64
65
66
67
68
69
|
# File 'lib/jfoundry/v2/user.rb', line 61
def family_name
p "family_name............."
end
|
#full_name ⇒ Object
71
72
73
74
75
76
77
|
# File 'lib/jfoundry/v2/user.rb', line 71
def full_name
if @name && @name[:fullName]
@name[:fullName]
elsif given_name && family_name
"#{given_name} #{family_name}"
end
end
|
#given_name ⇒ Object
51
52
53
54
55
56
57
58
59
|
# File 'lib/jfoundry/v2/user.rb', line 51
def given_name
p "given_name............."
end
|
#guid ⇒ Object
22
23
24
|
# File 'lib/jfoundry/v2/user.rb', line 22
def guid
@guid
end
|
#guid=(x) ⇒ Object
28
29
30
31
|
# File 'lib/jfoundry/v2/user.rb', line 28
def guid=(x)
@guid = x
set_guid_attribute(x)
end
|
#set_guid_attribute ⇒ Object
26
|
# File 'lib/jfoundry/v2/user.rb', line 26
alias set_guid_attribute guid=
|