Class: MessagingController::Msg
- Inherits:
-
Object
- Object
- MessagingController::Msg
- Defined in:
- app/controllers/messaging_controller.rb
Instance Attribute Summary collapse
-
#conversation_id ⇒ Object
Returns the value of attribute conversation_id.
-
#message ⇒ Object
Returns the value of attribute message.
-
#message_id ⇒ Object
Returns the value of attribute message_id.
-
#sender ⇒ Object
Returns the value of attribute sender.
Class Method Summary collapse
Instance Attribute Details
#conversation_id ⇒ Object
Returns the value of attribute conversation_id.
10 11 12 |
# File 'app/controllers/messaging_controller.rb', line 10 def conversation_id @conversation_id end |
#message ⇒ Object
Returns the value of attribute message.
12 13 14 |
# File 'app/controllers/messaging_controller.rb', line 12 def @message end |
#message_id ⇒ Object
Returns the value of attribute message_id.
13 14 15 |
# File 'app/controllers/messaging_controller.rb', line 13 def @message_id end |
#sender ⇒ Object
Returns the value of attribute sender.
11 12 13 |
# File 'app/controllers/messaging_controller.rb', line 11 def sender @sender end |
Class Method Details
.make(conversation_id, sender, message, message_id) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'app/controllers/messaging_controller.rb', line 15 def self.make(conversation_id, sender, , ) m = Msg.new m.conversation_id = conversation_id m.sender = sender m. = m. = return m end |