lib/miu/messages/base.rb in miu-0.2.2 vs lib/miu/messages/base.rb in miu-0.2.3
- old
+ new
@@ -17,9 +17,11 @@
yield self if block_given?
end
def to_h
{
+ :id => @id,
+ :time => @time,
:network => @network.to_h,
:type => @type,
:content => @content ? @content.to_h : {}
}
end