Class: MarketingConnection::List
- Inherits:
-
Object
- Object
- MarketingConnection::List
- Defined in:
- lib/marketing_connection/list.rb
Instance Method Summary collapse
- #create(params = {}) ⇒ Object
- #find(list_id) ⇒ Object
-
#initialize(opts = {}) ⇒ List
constructor
A new instance of List.
- #list(opts = {}) ⇒ Object
- #update ⇒ Object
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 |
#update ⇒ Object
15 16 |
# File 'lib/marketing_connection/list.rb', line 15 def update end |