Class: Mailee::Template

Inherits:
Config
  • Object
show all
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_attributesObject



66
67
68
# File 'lib/mailee/active_resource.rb', line 66

def self.writable_attributes
  [:title, :html]
end

Instance Method Details

#thumbObject



69
70
71
# File 'lib/mailee/active_resource.rb', line 69

def thumb
  "http://assets.mailee.me/system/templates/#{id}/thumbs/thumb/#{id}.png"
end