Class: Message
- Inherits:
-
Object
- Object
- Message
- Extended by:
- ActiveModel::Naming
- Includes:
- ActiveModel::Conversion, ActiveModel::Validations
- Defined in:
- app/models/message.rb
Instance Attribute Summary collapse
-
#attachment ⇒ Object
Returns the value of attribute attachment.
-
#body ⇒ Object
Returns the value of attribute body.
-
#conversation_id ⇒ Object
Returns the value of attribute conversation_id.
-
#recipients ⇒ Object
Returns the value of attribute recipients.
-
#subject ⇒ Object
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Message
constructor
A new instance of Message.
- #persisted? ⇒ Boolean
Constructor Details
#initialize(attributes = {}) ⇒ Message
Returns a new instance of Message.
12 13 14 15 16 |
# File 'app/models/message.rb', line 12 def initialize(attributes = {}) attributes.each do |name, value| send("#{name}=", value) end end |
Instance Attribute Details
#attachment ⇒ Object
Returns the value of attribute attachment.
6 7 8 |
# File 'app/models/message.rb', line 6 def end |
#body ⇒ Object
Returns the value of attribute body.
6 7 8 |
# File 'app/models/message.rb', line 6 def body @body end |
#conversation_id ⇒ Object
Returns the value of attribute conversation_id.
6 7 8 |
# File 'app/models/message.rb', line 6 def conversation_id @conversation_id end |
#recipients ⇒ Object
Returns the value of attribute recipients.
6 7 8 |
# File 'app/models/message.rb', line 6 def recipients @recipients end |
#subject ⇒ Object
Returns the value of attribute subject.
6 7 8 |
# File 'app/models/message.rb', line 6 def subject @subject end |
Instance Method Details
#persisted? ⇒ Boolean
18 19 20 |
# File 'app/models/message.rb', line 18 def persisted? false end |