Method: Iterable::Lists#create

Defined in:
lib/iterable/lists.rb

#create(name) ⇒ Iterable::Response

Create a new list with a name

Parameters:

  • name (String)

    The name of the list to create

Returns:



31
32
33
# File 'lib/iterable/lists.rb', line 31

def create(name)
  Iterable.request(conf, '/lists').post(name: name)
end