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