Class: Oksky::Chat::Object::TrackerEntriesResource

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

#idObject



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

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

#lObject



48
49
50
# File 'lib/oksky/chat/object/tracker_entries_resource.rb', line 48

def l
  content_value("l")
end

#pObject



40
41
42
# File 'lib/oksky/chat/object/tracker_entries_resource.rb', line 40

def p
  content_value("p")
end

#payloadHash

“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"

Returns:

  • (Hash)


24
25
26
# File 'lib/oksky/chat/object/tracker_entries_resource.rb', line 24

def payload
  content_value("payload")
end

#rObject



44
45
46
# File 'lib/oksky/chat/object/tracker_entries_resource.rb', line 44

def r
  content_value("r")
end

#relationshipsObject



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

#tObject



32
33
34
# File 'lib/oksky/chat/object/tracker_entries_resource.rb', line 32

def t
  content_value("t")
end

#time_unixString

Returns:

  • (String)


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

def time_unix
  content_value("time_unix")
end

#tracker_entryObject



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

#tzObject



52
53
54
# File 'lib/oksky/chat/object/tracker_entries_resource.rb', line 52

def tz
  content_value("tz")
end

#uaObject



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

def ua
  content_value("ua")
end

#user_uuidObject



28
29
30
# File 'lib/oksky/chat/object/tracker_entries_resource.rb', line 28

def user_uuid
  content_value("user_uuid")
end