class Contactually::Groupings
Public Class Methods
new(master)
click to toggle source
# File lib/contactually/groupings.rb, line 3 def initialize(master) @master = master end
Public Instance Methods
create(params = {})
click to toggle source
# File lib/contactually/groupings.rb, line 7 def create(params = {}) hash = @master.call('groupings.json', :post, params) Contactually::Utils.build_grouping(hash) end
destroy(id, params = {})
click to toggle source
# File lib/contactually/groupings.rb, line 22 def destroy(id, params = {}) @master.call("groupings/#{id}.json", :delete, params) end
index(params = {})
click to toggle source
# File lib/contactually/groupings.rb, line 12 def index(params = {}) hash = @master.call('groupings.json', :get, params) Contactually::Utils.groupings_hash_to_objects(hash) end
minimal_index(params = {})
click to toggle source
# File lib/contactually/groupings.rb, line 17 def minimal_index(params = {}) hash = @master.call('groupings/minimal_index.json', :get, params) Contactually::Utils.build_grouping(hash) end
show(id, params = {})
click to toggle source
# File lib/contactually/groupings.rb, line 26 def show(id, params = {}) hash = @master.call("groupings/#{id}.json", :get, params) Contactually::Utils.build_grouping(hash) end
update(id, params = {})
click to toggle source
# File lib/contactually/groupings.rb, line 31 def update(id, params = {}) hash = @master.call("groupings/#{id}.json", :put, params) Contactually::Utils.build_grouping(hash) end