class Contactually::ContactGroupings
Public Class Methods
new(master)
click to toggle source
# File lib/contactually/contact_groupings.rb, line 3 def initialize(master) @master = master end
Public Instance Methods
create(id, params = {})
click to toggle source
# File lib/contactually/contact_groupings.rb, line 7 def create(id, params = {}) hash = @master.call("contacts/#{id}/groupings.json", :post, params) Contactually::Utils.build_grouping(hash) end
destroy(id, grouping_id, params = {})
click to toggle source
# File lib/contactually/contact_groupings.rb, line 12 def destroy(id, grouping_id, params = {}) @master.call("contacts/#{id}/groupings/#{grouping_id}.json", :delete, params) end