Class: Miu::Messages::Text

Inherits:
Base
  • Object
show all
Defined in:
lib/miu/messages/text.rb

Instance Attribute Summary

Attributes inherited from Base

#content, #id, #network, #time, #type

Instance Method Summary collapse

Methods inherited from Base

#to_h, #to_msgpack

Constructor Details

#initialize(options = {}) ⇒ Text

Returns a new instance of Text.



7
8
9
10
11
# File 'lib/miu/messages/text.rb', line 7

def initialize(options = {})
  options[:type] ||= 'text'
  options[:content] = Miu::Utility.adapt(Resources::TextContent, options[:content] || {})
  super 
end