Class: Miu::Resources::TextContent
- Defined in:
- lib/miu/resources/text_content.rb
Instance Attribute Summary collapse
-
#room ⇒ Object
Returns the value of attribute room.
-
#text ⇒ Object
Returns the value of attribute text.
-
#user ⇒ Object
Returns the value of attribute user.
Attributes inherited from Content
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ TextContent
constructor
A new instance of TextContent.
- #to_h ⇒ Object
Methods inherited from Base
Constructor Details
Instance Attribute Details
#room ⇒ Object
Returns the value of attribute room.
6 7 8 |
# File 'lib/miu/resources/text_content.rb', line 6 def room @room end |
#text ⇒ Object
Returns the value of attribute text.
6 7 8 |
# File 'lib/miu/resources/text_content.rb', line 6 def text @text end |
#user ⇒ Object
Returns the value of attribute user.
6 7 8 |
# File 'lib/miu/resources/text_content.rb', line 6 def user @user end |
Instance Method Details
#to_h ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/miu/resources/text_content.rb', line 15 def to_h super.merge({ :room => @room.to_h, :user => @user.to_h, :text => @text }) end |