Class: GetAccept::Template

Inherits:
Resource show all
Defined in:
lib/get_accept/resources/template.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from GetAccept::Resource

Instance Method Details

#allObject



3
4
5
# File 'lib/get_accept/resources/template.rb', line 3

def all
  get('/templates')
end

#edit_url(id) ⇒ Object



7
8
9
# File 'lib/get_accept/resources/template.rb', line 7

def edit_url id
  "https://app.getaccept.com/template/edit/#{id}"
end