lib/miu/resources/text_content.rb in miu-0.2.0 vs lib/miu/resources/text_content.rb in miu-0.2.1
- old
+ new
@@ -10,13 +10,13 @@
@user = Miu::Utility.adapt(User, options[:user] || {})
@text = options[:text]
super options
end
- def to_hash
+ def to_h
super.merge({
- :room => @room.to_hash,
- :user => @user.to_hash,
+ :room => @room.to_h,
+ :user => @user.to_h,
:text => @text
})
end
end
end