lib/createsend/template.rb in createsend-1.1.1 vs lib/createsend/template.rb in createsend-2.0.0
- old
+ new
@@ -10,11 +10,11 @@
@template_id = template_id
end
# Creates a new email template.
def self.create(client_id, name, html_url, zip_url)
- options = { :body => {
+ options = { :body => {
:Name => name,
:HtmlPageURL => html_url,
:ZipFileURL => zip_url }.to_json }
response = CreateSend.post "/templates/#{client_id}.json", options
response.parsed_response
@@ -26,10 +26,10 @@
Hashie::Mash.new(response)
end
# Updates this email template.
def update(name, html_url, zip_url)
- options = { :body => {
+ options = { :body => {
:Name => name,
:HtmlPageURL => html_url,
:ZipFileURL => zip_url }.to_json }
response = CreateSend.put "/templates/#{template_id}.json", options
end
\ No newline at end of file