Class: GeneralMail
Instance Method Summary collapse
-
#initialize(args) ⇒ GeneralMail
constructor
A new instance of GeneralMail.
- #subject ⇒ Object
- #template ⇒ Object
- #values ⇒ Object
Methods inherited from Mail
Constructor Details
#initialize(args) ⇒ GeneralMail
Returns a new instance of GeneralMail.
4 5 6 7 8 9 |
# File 'lib/sinatra/extensions/generalmail.rb', line 4 def initialize(args) super(args) @subject = args[:subject] @description = args[:description] @link = args[:link] end |
Instance Method Details
#subject ⇒ Object
15 16 17 |
# File 'lib/sinatra/extensions/generalmail.rb', line 15 def subject @subject end |
#template ⇒ Object
11 12 13 |
# File 'lib/sinatra/extensions/generalmail.rb', line 11 def template 'general' end |
#values ⇒ Object
19 20 21 22 23 24 |
# File 'lib/sinatra/extensions/generalmail.rb', line 19 def values data = {} data["{description}"] = @description data["{link}"] = @link data end |