Class: Oksky::Chat::Object::UsersResource
- Inherits:
-
Base
- Object
- Base
- Oksky::Chat::Object::UsersResource
show all
- Defined in:
- lib/oksky/chat/object/users_resource.rb
Instance Method Summary
collapse
Methods inherited from Base
#[], #initialize
Instance Method Details
#avatar_url ⇒ Object
34
35
36
|
# File 'lib/oksky/chat/object/users_resource.rb', line 34
def avatar_url
content_value("avatar_url")
end
|
#created_at ⇒ Object
70
71
72
|
# File 'lib/oksky/chat/object/users_resource.rb', line 70
def created_at
content_value("created_at")
end
|
#created_at_unix ⇒ Object
74
75
76
|
# File 'lib/oksky/chat/object/users_resource.rb', line 74
def created_at_unix
content_value("created_at_unix")
end
|
#default_avatar_url ⇒ Object
38
39
40
|
# File 'lib/oksky/chat/object/users_resource.rb', line 38
def default_avatar_url
content_value("default_avatar_url")
end
|
30
31
32
|
# File 'lib/oksky/chat/object/users_resource.rb', line 30
def email
content_value("email")
end
|
#full_name ⇒ Object
18
19
20
|
# File 'lib/oksky/chat/object/users_resource.rb', line 18
def full_name
content_value("full_name")
end
|
#gravatar_id ⇒ Object
26
27
28
|
# File 'lib/oksky/chat/object/users_resource.rb', line 26
def gravatar_id
content_value("gravatar_id")
end
|
6
7
8
|
# File 'lib/oksky/chat/object/users_resource.rb', line 6
def id
@src.dig("id")
end
|
#in_training ⇒ Object
58
59
60
|
# File 'lib/oksky/chat/object/users_resource.rb', line 58
def in_training
content_value("in_training")
end
|
#is_active ⇒ Object
66
67
68
|
# File 'lib/oksky/chat/object/users_resource.rb', line 66
def is_active
content_value("is_active")
end
|
82
83
84
|
# File 'lib/oksky/chat/object/users_resource.rb', line 82
def language
content_value("language")
end
|
#login_count ⇒ Object
62
63
64
|
# File 'lib/oksky/chat/object/users_resource.rb', line 62
def login_count
content_value("login_count")
end
|
#max_support_count ⇒ Object
50
51
52
|
# File 'lib/oksky/chat/object/users_resource.rb', line 50
def max_support_count
content_value("max_support_count")
end
|
22
23
24
|
# File 'lib/oksky/chat/object/users_resource.rb', line 22
def name
content_value("name")
end
|
#relationships ⇒ Object
94
95
96
97
98
99
100
|
# File 'lib/oksky/chat/object/users_resource.rb', line 94
def relationships
if exist_relationships?
return @src['relationships']
else
{}
end
end
|
46
47
48
|
# File 'lib/oksky/chat/object/users_resource.rb', line 46
def status
content_value("status")
end
|
54
55
56
|
# File 'lib/oksky/chat/object/users_resource.rb', line 54
def timezone
content_value("timezone")
end
|
86
87
88
89
90
91
92
|
# File 'lib/oksky/chat/object/users_resource.rb', line 86
def user
if @src.has_key?('attributes')
@src['attributes']
else
@src
end
end
|
#user_type ⇒ Object
42
43
44
|
# File 'lib/oksky/chat/object/users_resource.rb', line 42
def user_type
content_value("user_type")
end
|
#user_typings ⇒ Object
78
79
80
|
# File 'lib/oksky/chat/object/users_resource.rb', line 78
def user_typings
content_value("user_typings")
end
|
14
15
16
|
# File 'lib/oksky/chat/object/users_resource.rb', line 14
def username
content_value("username")
end
|
10
11
12
|
# File 'lib/oksky/chat/object/users_resource.rb', line 10
def uuid
content_value("uuid")
end
|