Class: Oksky::Chat::Object::UsersResource

Inherits:
Base
  • Object
show all
Defined in:
lib/oksky/chat/object/users_resource.rb

Instance Method Summary collapse

Methods inherited from Base

#[], #initialize

Constructor Details

This class inherits a constructor from Oksky::Chat::Object::Base

Instance Method Details

#avatar_urlObject



34
35
36
# File 'lib/oksky/chat/object/users_resource.rb', line 34

def avatar_url
  content_value("avatar_url")
end

#created_atObject



70
71
72
# File 'lib/oksky/chat/object/users_resource.rb', line 70

def created_at
  content_value("created_at")
end

#created_at_unixObject



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_urlObject



38
39
40
# File 'lib/oksky/chat/object/users_resource.rb', line 38

def default_avatar_url
  content_value("default_avatar_url")
end

#emailObject



30
31
32
# File 'lib/oksky/chat/object/users_resource.rb', line 30

def email
  content_value("email")
end

#full_nameObject



18
19
20
# File 'lib/oksky/chat/object/users_resource.rb', line 18

def full_name
  content_value("full_name")
end

#gravatar_idObject



26
27
28
# File 'lib/oksky/chat/object/users_resource.rb', line 26

def gravatar_id
  content_value("gravatar_id")
end

#idObject



6
7
8
# File 'lib/oksky/chat/object/users_resource.rb', line 6

def id
  @src.dig("id")
end

#in_trainingObject



58
59
60
# File 'lib/oksky/chat/object/users_resource.rb', line 58

def in_training
  content_value("in_training")
end

#is_activeObject



66
67
68
# File 'lib/oksky/chat/object/users_resource.rb', line 66

def is_active
  content_value("is_active")
end

#languageObject



82
83
84
# File 'lib/oksky/chat/object/users_resource.rb', line 82

def language
  content_value("language")
end

#login_countObject



62
63
64
# File 'lib/oksky/chat/object/users_resource.rb', line 62

def 
  content_value("login_count")
end

#max_support_countObject



50
51
52
# File 'lib/oksky/chat/object/users_resource.rb', line 50

def max_support_count
  content_value("max_support_count")
end

#nameObject



22
23
24
# File 'lib/oksky/chat/object/users_resource.rb', line 22

def name
  content_value("name")
end

#relationshipsObject



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

#statusObject



46
47
48
# File 'lib/oksky/chat/object/users_resource.rb', line 46

def status
  content_value("status")
end

#timezoneObject



54
55
56
# File 'lib/oksky/chat/object/users_resource.rb', line 54

def timezone
  content_value("timezone")
end

#userObject



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_typeObject



42
43
44
# File 'lib/oksky/chat/object/users_resource.rb', line 42

def user_type
  content_value("user_type")
end

#user_typingsObject



78
79
80
# File 'lib/oksky/chat/object/users_resource.rb', line 78

def user_typings
  content_value("user_typings")
end

#usernameObject



14
15
16
# File 'lib/oksky/chat/object/users_resource.rb', line 14

def username
  content_value("username")
end

#uuidObject



10
11
12
# File 'lib/oksky/chat/object/users_resource.rb', line 10

def uuid
  content_value("uuid")
end