Class: Mailtime::Renderers::BaseRenderer
- Inherits:
-
Object
- Object
- Mailtime::Renderers::BaseRenderer
- Defined in:
- lib/mailtime/renderers/base_renderer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#mail ⇒ Object
readonly
Returns the value of attribute mail.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(mail, content) ⇒ BaseRenderer
constructor
A new instance of BaseRenderer.
- #render ⇒ Object
Constructor Details
#initialize(mail, content) ⇒ BaseRenderer
Returns a new instance of BaseRenderer.
6 7 8 9 |
# File 'lib/mailtime/renderers/base_renderer.rb', line 6 def initialize(mail, content) @mail = mail @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
5 6 7 |
# File 'lib/mailtime/renderers/base_renderer.rb', line 5 def content @content end |
#mail ⇒ Object (readonly)
Returns the value of attribute mail.
5 6 7 |
# File 'lib/mailtime/renderers/base_renderer.rb', line 5 def mail @mail end |
Class Method Details
.renders ⇒ Object
11 12 13 |
# File 'lib/mailtime/renderers/base_renderer.rb', line 11 def self.renders [] end |
Instance Method Details
#render ⇒ Object
15 16 17 |
# File 'lib/mailtime/renderers/base_renderer.rb', line 15 def render @content end |