Class: Skypekit::FFI::ChatMessageData
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Skypekit::FFI::ChatMessageData
- Defined in:
- lib/skypekit/ffi/chat_message_data.rb
Instance Method Summary collapse
- #author ⇒ Object
- #author_displayname ⇒ Object
- #body ⇒ Object
- #convo_guid ⇒ Object
- #convo_id ⇒ Object
- #inspect ⇒ Object
- #sent_at ⇒ Object
Instance Method Details
#author ⇒ Object
24 25 26 |
# File 'lib/skypekit/ffi/chat_message_data.rb', line 24 def self[:author] end |
#author_displayname ⇒ Object
28 29 30 |
# File 'lib/skypekit/ffi/chat_message_data.rb', line 28 def self[:author_displayname] end |
#body ⇒ Object
36 37 38 |
# File 'lib/skypekit/ffi/chat_message_data.rb', line 36 def body self[:body_xml] end |
#convo_guid ⇒ Object
20 21 22 |
# File 'lib/skypekit/ffi/chat_message_data.rb', line 20 def convo_guid self[:convo_guid] end |
#convo_id ⇒ Object
16 17 18 |
# File 'lib/skypekit/ffi/chat_message_data.rb', line 16 def convo_id self[:convo_id] end |
#inspect ⇒ Object
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_displayname=#{} sent_at=#{sent_at} body=#{body}" end |
#sent_at ⇒ Object
32 33 34 |
# File 'lib/skypekit/ffi/chat_message_data.rb', line 32 def sent_at Time.at(self[:timestamp]) end |