Class: Oksky::Chat::Object::ClientsResource
- Inherits:
-
Base
- Object
- Base
- Oksky::Chat::Object::ClientsResource
show all
- Defined in:
- lib/oksky/chat/object/clients_resource.rb
Instance Method Summary
collapse
Methods inherited from Base
#[], #initialize
Instance Method Details
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
|
22
23
24
|
# File 'lib/oksky/chat/object/clients_resource.rb', line 22
def code
content_value("code")
end
|
#default_embedded_css ⇒ Object
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_html ⇒ Object
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_css ⇒ Object
30
31
32
|
# File 'lib/oksky/chat/object/clients_resource.rb', line 30
def default_guest_css
content_value("default_guest_css")
end
|
6
7
8
|
# File 'lib/oksky/chat/object/clients_resource.rb', line 6
def id
@src.dig("id")
end
|
#injectable_code ⇒ Object
10
11
12
|
# File 'lib/oksky/chat/object/clients_resource.rb', line 10
def injectable_code
content_value("injectable_code")
end
|
#relationships ⇒ Object
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
|
14
15
16
|
# File 'lib/oksky/chat/object/clients_resource.rb', line 14
def settings
content_value("settings")
end
|
18
19
20
|
# File 'lib/oksky/chat/object/clients_resource.rb', line 18
def title
content_value("title")
end
|