Class: Dreamcatcher::Mailer::EmailContext
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Dreamcatcher::Mailer::EmailContext
- Defined in:
- lib/dreamcatcher/mailer.rb
Instance Method Summary collapse
- #bcc ⇒ Object
- #cc ⇒ Object
- #from ⇒ Object
- #get_binding ⇒ Object
-
#initialize(context, options) ⇒ EmailContext
constructor
A new instance of EmailContext.
- #subject ⇒ Object
- #to ⇒ Object
Constructor Details
#initialize(context, options) ⇒ EmailContext
Returns a new instance of EmailContext.
72 73 74 75 |
# File 'lib/dreamcatcher/mailer.rb', line 72 def initialize(context, ) super(context) @context, @options = context, end |
Instance Method Details
#bcc ⇒ Object
89 90 91 |
# File 'lib/dreamcatcher/mailer.rb', line 89 def bcc @options[:bcc] end |
#cc ⇒ Object
85 86 87 |
# File 'lib/dreamcatcher/mailer.rb', line 85 def cc @options[:cc] end |
#from ⇒ Object
93 94 95 |
# File 'lib/dreamcatcher/mailer.rb', line 93 def from @options[:from] end |
#get_binding ⇒ Object
97 98 99 |
# File 'lib/dreamcatcher/mailer.rb', line 97 def get_binding binding end |
#subject ⇒ Object
77 78 79 |
# File 'lib/dreamcatcher/mailer.rb', line 77 def subject @options[:subject] end |
#to ⇒ Object
81 82 83 |
# File 'lib/dreamcatcher/mailer.rb', line 81 def to @options[:to] end |