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



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

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

Instance Method Details

#thumbObject



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

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