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