class Contactually::Accounts
Public Class Methods
new(master)
click to toggle source
# File lib/contactually/accounts.rb, line 4 def initialize(master) @master = master end
Public Instance Methods
destroy(id, params = {})
click to toggle source
# File lib/contactually/accounts.rb, line 18 def destroy(id, params = {}) @master.call("accounts/#{id}.json", :delete, params) end
index(params = {})
click to toggle source
# File lib/contactually/accounts.rb, line 8 def index(params = {}) hash = @master.call('accounts.json', :get, params) Contactually::Utils.accounts_hash_to_objects(hash) end
show(id, params = {})
click to toggle source
# File lib/contactually/accounts.rb, line 13 def show(id, params = {}) hash = @master.call("accounts/#{id}.json", :get, params) Contactually::Utils.build_account(hash) end