Class: Locaweb::Emailmarketing::TemplateClient
- Inherits:
-
BaseClient
- Object
- BaseClient
- Locaweb::Emailmarketing::TemplateClient
- Defined in:
- lib/locaweb-emailmarketing/clients/template_client.rb
Instance Method Summary collapse
-
#initialize(http_request_adapter, account_id) ⇒ TemplateClient
constructor
A new instance of TemplateClient.
Methods inherited from BaseClient
#all, #create, #destroy, #get, #update
Constructor Details
#initialize(http_request_adapter, account_id) ⇒ TemplateClient
Returns a new instance of TemplateClient.
4 5 6 7 8 9 |
# File 'lib/locaweb-emailmarketing/clients/template_client.rb', line 4 def initialize(http_request_adapter, account_id) super resource_name "templates" required_keys_to_create({ required: [:name, :html_body, :text_body], optional: [] }) required_keys_to_update({ required: [], optional: [:name, :html_body, :text_body] }) end |