Class: MarketingConnection::List

Inherits:
Object
  • Object
show all
Defined in:
lib/marketing_connection/list.rb

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ List

Returns a new instance of List.



3
4
5
# File 'lib/marketing_connection/list.rb', line 3

def initialize(opts = {})

end

Instance Method Details

#create(params = {}) ⇒ Object



11
12
13
# File 'lib/marketing_connection/list.rb', line 11

def create(params = {})
  MarketingConnection.submit(:post, list_url, params)
end

#find(list_id) ⇒ Object



18
19
20
# File 'lib/marketing_connection/list.rb', line 18

def find(list_id)
  MarketingConnection.submit(:get, "#{list_url}/#{list_id}")
end

#list(opts = {}) ⇒ Object



7
8
9
# File 'lib/marketing_connection/list.rb', line 7

def list(opts = {})
  MarketingConnection.submit(:get, list_url, opts)
end

#updateObject



15
16
# File 'lib/marketing_connection/list.rb', line 15

def update
end