Class: Message

Inherits:
Object
  • Object
show all
Extended by:
ActiveModel::Naming
Includes:
ActiveModel::Conversion, ActiveModel::Validations
Defined in:
app/models/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attachmentObject

Returns the value of attribute attachment.



6
7
8
# File 'app/models/message.rb', line 6

def attachment
  @attachment
end

#bodyObject

Returns the value of attribute body.



6
7
8
# File 'app/models/message.rb', line 6

def body
  @body
end

#conversation_idObject

Returns the value of attribute conversation_id.



6
7
8
# File 'app/models/message.rb', line 6

def conversation_id
  @conversation_id
end

#recipientsObject

Returns the value of attribute recipients.



6
7
8
# File 'app/models/message.rb', line 6

def recipients
  @recipients
end

#subjectObject

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

Returns:

  • (Boolean)


18
19
20
# File 'app/models/message.rb', line 18

def persisted?
  false
end