Class: GeneralMailNoLink

Inherits:
Mail
  • Object
show all
Defined in:
lib/sinatra/extensions/generalmailnolink.rb

Instance Method Summary collapse

Methods inherited from Mail

#from, #send, #to

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

#subjectObject



14
15
16
# File 'lib/sinatra/extensions/generalmailnolink.rb', line 14

def subject
  @subject
end

#templateObject



10
11
12
# File 'lib/sinatra/extensions/generalmailnolink.rb', line 10

def template
  'general_no_link'
end

#valuesObject



18
19
20
21
22
# File 'lib/sinatra/extensions/generalmailnolink.rb', line 18

def values
  data = {}
  data["{description}"] = @description
  data
end