Module: RTM::IO::TOJTM::Topic

Defined in:
rtm/lib/rtm/io/to_jtm.rb

Instance Method Summary

Instance Method Details

- (Object) to_jtm Also known as: to_json

Returns the JTM representation of this RTM::Topic



27
28
29
30
31
32
# File 'rtm/lib/rtm/io/to_jtm.rb', line 27

def to_jtm
  h = to_hash
  h[:version] = "1.0"
  h[:item_type] = "topic"
  h.to_json
end