Class: Dreamcatcher::Mailer::EmailContext

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/dreamcatcher/mailer.rb

Instance Method Summary collapse

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, options)
  super(context)
  @context, @options = context, options
end

Instance Method Details

#bccObject



89
90
91
# File 'lib/dreamcatcher/mailer.rb', line 89

def bcc
  @options[:bcc]
end

#ccObject



85
86
87
# File 'lib/dreamcatcher/mailer.rb', line 85

def cc
  @options[:cc]
end

#fromObject



93
94
95
# File 'lib/dreamcatcher/mailer.rb', line 93

def from
  @options[:from]
end

#get_bindingObject



97
98
99
# File 'lib/dreamcatcher/mailer.rb', line 97

def get_binding
  binding
end

#subjectObject



77
78
79
# File 'lib/dreamcatcher/mailer.rb', line 77

def subject
  @options[:subject]
end

#toObject



81
82
83
# File 'lib/dreamcatcher/mailer.rb', line 81

def to
  @options[:to]
end