Class: Locaweb::Emailmarketing::ContactClient

Inherits:
BaseClient
  • Object
show all
Defined in:
lib/locaweb-emailmarketing/clients/contact_client.rb

Instance Method Summary collapse

Methods inherited from BaseClient

#all, #create, #destroy, #get, #update

Constructor Details

#initialize(http_request_adapter, account_id) ⇒ ContactClient

Returns a new instance of ContactClient.



4
5
6
7
8
9
# File 'lib/locaweb-emailmarketing/clients/contact_client.rb', line 4

def initialize(http_request_adapter, )
  super
  resource_name "contacts"
  required_keys_to_update({required: [], optional: [:custom_fields, :list_tokens]})
  required_keys_to_create({required: [:email, :list_ids], optional: [:custom_fields]})
end