Class: CampaignMonitor::ClientLists

Inherits:
Array
  • Object
show all
Defined in:
lib/campaign_monitor/client.rb

Overview

Provides access to the lists and campaigns associated with a client

Instance Method Summary collapse

Constructor Details

#initialize(v, parent) ⇒ ClientLists

Returns a new instance of ClientLists.



4
5
6
7
# File 'lib/campaign_monitor/client.rb', line 4

def initialize(v,parent)
  @parent=parent
  super(v)
end

Instance Method Details

#build(attrs = {}) ⇒ Object



8
9
10
# File 'lib/campaign_monitor/client.rb', line 8

def build(attrs={})
  List.new(attrs.merge(:ClientID => @parent.id))
end