Class: Skypekit::FFI::ChatMessageData

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/skypekit/ffi/chat_message_data.rb

Instance Method Summary collapse

Instance Method Details

#authorObject



24
25
26
# File 'lib/skypekit/ffi/chat_message_data.rb', line 24

def author
  self[:author]
end

#author_displaynameObject



28
29
30
# File 'lib/skypekit/ffi/chat_message_data.rb', line 28

def author_displayname
  self[:author_displayname]
end

#bodyObject



36
37
38
# File 'lib/skypekit/ffi/chat_message_data.rb', line 36

def body
  self[:body_xml]
end

#convo_guidObject



20
21
22
# File 'lib/skypekit/ffi/chat_message_data.rb', line 20

def convo_guid
  self[:convo_guid]
end

#convo_idObject



16
17
18
# File 'lib/skypekit/ffi/chat_message_data.rb', line 16

def convo_id
  self[:convo_id]
end

#inspectObject



41
42
43
# File 'lib/skypekit/ffi/chat_message_data.rb', line 41

def inspect
  "#{super} convo_id=#{convo_id} convo_guid=#{convo_guid} author=#{author} author_displayname=#{author_displayname} sent_at=#{sent_at} body=#{body}"
end

#sent_atObject



32
33
34
# File 'lib/skypekit/ffi/chat_message_data.rb', line 32

def sent_at
  Time.at(self[:timestamp])
end