Class: Chronicle::Zulip::MessageTransformer

Inherits:
ETL::Transformer
  • Object
show all
Defined in:
lib/chronicle/zulip/message_transformer.rb

Instance Method Summary collapse

Instance Method Details

#idObject



16
17
18
# File 'lib/chronicle/zulip/message_transformer.rb', line 16

def id
  message[:id]
end

#timestampObject



20
21
22
# File 'lib/chronicle/zulip/message_transformer.rb', line 20

def timestamp
  Time.at(message[:timestamp])
end

#transformObject



12
13
14
# File 'lib/chronicle/zulip/message_transformer.rb', line 12

def transform
  build_messaged
end