Class: GeneralMailNoLink
- Defined in:
- lib/sinatra/extensions/generalmailnolink.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ GeneralMailNoLink
constructor
A new instance of GeneralMailNoLink.
- #subject ⇒ Object
- #template ⇒ Object
- #values ⇒ Object
Methods inherited from Mail
Constructor Details
#initialize(args) ⇒ GeneralMailNoLink
Returns a new instance of GeneralMailNoLink.
4 5 6 7 8 |
# File 'lib/sinatra/extensions/generalmailnolink.rb', line 4 def initialize(args) super(args) @subject = args[:subject] @description = args[:description] end |
Instance Method Details
#subject ⇒ Object
14 15 16 |
# File 'lib/sinatra/extensions/generalmailnolink.rb', line 14 def subject @subject end |
#template ⇒ Object
10 11 12 |
# File 'lib/sinatra/extensions/generalmailnolink.rb', line 10 def template 'general_no_link' end |
#values ⇒ Object
18 19 20 21 22 |
# File 'lib/sinatra/extensions/generalmailnolink.rb', line 18 def values data = {} data["{description}"] = @description data end |