class Promoter::EmailTemplate
Constants
- API_URL
Attributes
company_brand_product_name[R]
from_name[R]
id[R]
intro_message[R]
language[R]
logo[R]
name[R]
reply_to_email[R]
subject[R]
Public Class Methods
all(page=1)
click to toggle source
# File lib/promoter/email_template.rb, line 22 def self.all(page=1) response = Request.get("#{API_URL}/?page=#{page}") response['results'].map {|attrs| new(attrs)} end
create(attributes)
click to toggle source
Email Template Params Parameter Optional? Description name no The name of the email template subject no The subject line of the email template logo no Base64 encoded image data (only) representing
the logo with your survey. It is also the logo they see when they respond to the survey with a score. The logo will be located at the top of the survey
reply_to_email
no The reply-to email address for the email template from_name
no The name the template is showing to be from intro_message
no This is the message that appears just above
the 0-10 scale and below the logo
language no The language the template is in company_brand_product_name
no The name inserted into the main question
# File lib/promoter/email_template.rb, line 41 def self.create(attributes) response = Request.post(API_URL + "/", attributes) new(response) end
new(attrs)
click to toggle source
# File lib/promoter/email_template.rb, line 10 def initialize(attrs) @id = attrs["id"] @name = attrs["name"] @logo = attrs["logo"] @subject = attrs["subject"] @reply_to_email = attrs["reply_to_email"] @from_name = attrs["from_name"] @intro_message = attrs["intro_message"] @language = attrs["language"] @company_brand_product_name = attrs["company_brand_product_name"] end