Module: Closeio::Client::EmailTemplate
- Included in:
- Closeio::Client
- Defined in:
- lib/closeio/resources/email_template.rb
Instance Method Summary collapse
- #create_email_template(id, options = {}) ⇒ Object
- #delete_email_template(id) ⇒ Object
- #find_email_template(id) ⇒ Object
- #list_email_templates(paginate = false) ⇒ Object
- #update_email_template(id, options = {}) ⇒ Object
Instance Method Details
#create_email_template(id, options = {}) ⇒ Object
17 18 19 |
# File 'lib/closeio/resources/email_template.rb', line 17 def create_email_template(id, ={}) post(email_template_path, ) end |
#delete_email_template(id) ⇒ Object
25 26 27 |
# File 'lib/closeio/resources/email_template.rb', line 25 def delete_email_template(id) delete("#{email_template_path}#{id}/") end |
#find_email_template(id) ⇒ Object
13 14 15 |
# File 'lib/closeio/resources/email_template.rb', line 13 def find_email_template(id) get("#{email_template_path}#{id}/") end |
#list_email_templates(paginate = false) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/closeio/resources/email_template.rb', line 5 def list_email_templates(paginate = false) if paginate paginate(email_template_path) else get(email_template_path) end end |
#update_email_template(id, options = {}) ⇒ Object
21 22 23 |
# File 'lib/closeio/resources/email_template.rb', line 21 def update_email_template(id, ={}) put("#{email_template_path}#{id}/", ) end |