Class: Oksky::Chat::Object::SupervisorsResource

Inherits:
UsersResource show all
Defined in:
lib/oksky/chat/object/supervisors_resource.rb

Instance Method Summary collapse

Methods inherited from UsersResource

#avatar_url, #created_at, #created_at_unix, #default_avatar_url, #email, #full_name, #gravatar_id, #in_training, #is_active, #language, #login_count, #max_support_count, #name, #relationships, #status, #timezone, #user, #user_type, #user_typings, #username, #uuid

Methods inherited from Base

#[], #initialize

Constructor Details

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

Instance Method Details

#idObject



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

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

#membersArray

Returns:

  • (Array)


21
22
23
# File 'lib/oksky/chat/object/supervisors_resource.rb', line 21

def members
  relationships.dig("members", "data")
end

#present_roomsArray

Returns:

  • (Array)


11
12
13
# File 'lib/oksky/chat/object/supervisors_resource.rb', line 11

def present_rooms
  relationships.dig("present_rooms", "data")
end

#roomsArray

Returns:

  • (Array)


31
32
33
# File 'lib/oksky/chat/object/supervisors_resource.rb', line 31

def rooms
  relationships.dig("rooms", "data")
end

#starred_customersArray

Returns:

  • (Array)


41
42
43
# File 'lib/oksky/chat/object/supervisors_resource.rb', line 41

def starred_customers
  relationships.dig("starred_customers", "data")
end

#starred_roomsArray

Returns:

  • (Array)


36
37
38
# File 'lib/oksky/chat/object/supervisors_resource.rb', line 36

def starred_rooms
  relationships.dig("starred_rooms", "data")
end

#support_roomsArray

Returns:

  • (Array)


16
17
18
# File 'lib/oksky/chat/object/supervisors_resource.rb', line 16

def support_rooms
  relationships.dig("support_rooms", "data")
end

#supportsArray

Returns:

  • (Array)


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

def supports
  relationships.dig("supports", "data")
end