Class: Oksky::Chat::Object::TrackerEntriesResource
- Inherits:
-
Base
- Object
- Base
- Oksky::Chat::Object::TrackerEntriesResource
show all
- Defined in:
- lib/oksky/chat/object/tracker_entries_resource.rb
Instance Method Summary
collapse
Methods inherited from Base
#[], #initialize
Instance Method Details
6
7
8
|
# File 'lib/oksky/chat/object/tracker_entries_resource.rb', line 6
def id
@src.dig("id")
end
|
48
49
50
|
# File 'lib/oksky/chat/object/tracker_entries_resource.rb', line 48
def l
content_value("l")
end
|
40
41
42
|
# File 'lib/oksky/chat/object/tracker_entries_resource.rb', line 40
def p
content_value("p")
end
|
#payload ⇒ Hash
“payload”:
"ua":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36",
"p":"Win32",
"r":"",
"l":"https://www.google.co.jp/?gfe_rd=cr&dcr=0&ei=2Qq-WtP_MPDd8Aebq6b4Bg&gws_rd=ssl",
"t":1522404097400,
"tz":"Asia/Tokyo"
24
25
26
|
# File 'lib/oksky/chat/object/tracker_entries_resource.rb', line 24
def payload
content_value("payload")
end
|
44
45
46
|
# File 'lib/oksky/chat/object/tracker_entries_resource.rb', line 44
def r
content_value("r")
end
|
#relationships ⇒ Object
64
65
66
67
68
69
70
|
# File 'lib/oksky/chat/object/tracker_entries_resource.rb', line 64
def relationships
if exist_relationships?
return @src['relationships']
else
{}
end
end
|
32
33
34
|
# File 'lib/oksky/chat/object/tracker_entries_resource.rb', line 32
def t
content_value("t")
end
|
#time_unix ⇒ String
11
12
13
|
# File 'lib/oksky/chat/object/tracker_entries_resource.rb', line 11
def time_unix
content_value("time_unix")
end
|
#tracker_entry ⇒ Object
56
57
58
59
60
61
62
|
# File 'lib/oksky/chat/object/tracker_entries_resource.rb', line 56
def tracker_entry
if @src.has_key?('attributes')
@src['attributes']
else
@src
end
end
|
52
53
54
|
# File 'lib/oksky/chat/object/tracker_entries_resource.rb', line 52
def tz
content_value("tz")
end
|
36
37
38
|
# File 'lib/oksky/chat/object/tracker_entries_resource.rb', line 36
def ua
content_value("ua")
end
|
#user_uuid ⇒ Object
28
29
30
|
# File 'lib/oksky/chat/object/tracker_entries_resource.rb', line 28
def user_uuid
content_value("user_uuid")
end
|