Class: Dorsale::Email
- Inherits:
-
Object
- Object
- Dorsale::Email
- Includes:
- ActiveModel::Model, Agilibox::ModelI18n, Agilibox::ModelToS
- Defined in:
- app/models/dorsale/email.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#cc ⇒ Object
Returns the value of attribute cc.
-
#current_user ⇒ Object
Returns the value of attribute current_user.
-
#from ⇒ Object
Returns the value of attribute from.
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
- #attachment_names ⇒ Object
-
#initialize ⇒ Email
constructor
A new instance of Email.
- #save ⇒ Object
Constructor Details
#initialize ⇒ Email
Returns a new instance of Email.
24 25 26 27 |
# File 'app/models/dorsale/email.rb', line 24 def initialize(*) super assign_default_values end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
14 15 16 |
# File 'app/models/dorsale/email.rb', line 14 def body @body end |
#cc ⇒ Object
Returns the value of attribute cc.
14 15 16 |
# File 'app/models/dorsale/email.rb', line 14 def cc @cc end |
#current_user ⇒ Object
Returns the value of attribute current_user.
14 15 16 |
# File 'app/models/dorsale/email.rb', line 14 def current_user @current_user end |
#from ⇒ Object
Returns the value of attribute from.
14 15 16 |
# File 'app/models/dorsale/email.rb', line 14 def from @from end |
#subject ⇒ Object
Returns the value of attribute subject.
14 15 16 |
# File 'app/models/dorsale/email.rb', line 14 def subject @subject end |
#to ⇒ Object
Returns the value of attribute to.
14 15 16 |
# File 'app/models/dorsale/email.rb', line 14 def to @to end |
Instance Method Details
#attachment_names ⇒ Object
29 30 31 |
# File 'app/models/dorsale/email.rb', line 29 def .keys.join(", ") end |
#save ⇒ Object
33 34 35 |
# File 'app/models/dorsale/email.rb', line 33 def save valid? && deliver_later end |