class MarketingConnection::List

Public Class Methods

new(opts = {}) click to toggle source
# File lib/marketing_connection/list.rb, line 3
def initialize(opts = {})

end

Public Instance Methods

create(params = {}) click to toggle source
# File lib/marketing_connection/list.rb, line 11
def create(params = {})
  MarketingConnection.submit(:post, list_url, params)
end
find(list_id) click to toggle source
# File lib/marketing_connection/list.rb, line 18
def find(list_id)
  MarketingConnection.submit(:get, "#{list_url}/#{list_id}")
end
list(opts = {}) click to toggle source
# File lib/marketing_connection/list.rb, line 7
def list(opts = {})
  MarketingConnection.submit(:get, list_url, opts)
end
update() click to toggle source
# File lib/marketing_connection/list.rb, line 15
def update
end

Private Instance Methods

list_url() click to toggle source
# File lib/marketing_connection/list.rb, line 23
def list_url
  "lists"
end