Class: Mailee::Template
- Defined in:
- lib/mailee/active_resource.rb
Overview
The Template class gives you default access to your templates (all, first, create, update, destroy) Writable attributes:
:title, :html
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.writable_attributes ⇒ Object
58 59 60 |
# File 'lib/mailee/active_resource.rb', line 58 def self.writable_attributes [:title, :html] end |
Instance Method Details
#thumb ⇒ Object
61 62 63 |
# File 'lib/mailee/active_resource.rb', line 61 def thumb "http://assets.mailee.me/system/templates/#{id}/thumbs/thumb/#{id}.png" end |