Class: MessagingController::Msg

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/messaging_controller.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#conversation_idObject

Returns the value of attribute conversation_id.



10
11
12
# File 'app/controllers/messaging_controller.rb', line 10

def conversation_id
  @conversation_id
end

#messageObject

Returns the value of attribute message.



12
13
14
# File 'app/controllers/messaging_controller.rb', line 12

def message
  @message
end

#message_idObject

Returns the value of attribute message_id.



13
14
15
# File 'app/controllers/messaging_controller.rb', line 13

def message_id
  @message_id
end

#senderObject

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, message, message_id)
  m = Msg.new
  m.conversation_id = conversation_id
  m.sender = sender
  m.message = message
  m.message_id = message_id
  return m
end