Method: Miu::Resources::TextContent#initialize
- Defined in:
- lib/miu/resources/text_content.rb
#initialize(options = {}) ⇒ TextContent
Returns a new instance of TextContent.
8 9 10 11 12 13 |
# File 'lib/miu/resources/text_content.rb', line 8 def initialize( = {}) @room = Miu::Utility.adapt(Room, [:room] || {}) @user = Miu::Utility.adapt(User, [:user] || {}) @text = [:text] super end |