Module: BurstSms::ListsAdd

Included in:
API
Defined in:
lib/burstsms/lists_add.rb

Defined Under Namespace

Classes: Response

Instance Method Summary collapse

Instance Method Details

#add_list(name) ⇒ Object



6
7
8
9
# File 'lib/burstsms/lists_add.rb', line 6

def add_list(name)
  response = post_to_api(add_list_body(name))
  Response.parse(response.body)
end

#add_list_body(name) ⇒ Object



11
12
13
# File 'lib/burstsms/lists_add.rb', line 11

def add_list_body(name)
  build_request("contact-lists.add", :name => name)
end