Class: Oksky::Chat::Object::ClientsResource

Inherits:
Base
  • Object
show all
Defined in:
lib/oksky/chat/object/clients_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

#clientObject



38
39
40
41
42
43
44
# File 'lib/oksky/chat/object/clients_resource.rb', line 38

def client
  if @src.has_key?('attributes')
    @src['attributes']
  else
    @src
  end
end

#codeObject



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

def code
  content_value("code")
end

#default_embedded_cssObject



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

def default_embedded_css
  content_value("default_embedded_css")
end

#default_embedded_htmlObject



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

def default_embedded_html
  content_value("default_embedded_html")
end

#default_guest_cssObject



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

def default_guest_css
  content_value("default_guest_css")
end

#idObject



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

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

#injectable_codeObject



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

def injectable_code
  content_value("injectable_code")
end

#relationshipsObject



46
47
48
49
50
51
52
# File 'lib/oksky/chat/object/clients_resource.rb', line 46

def relationships
  if exist_relationships?
    return @src['relationships']
  else
    {}
  end
end

#settingsObject



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

def settings
  content_value("settings")
end

#titleObject



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

def title
  content_value("title")
end