Class: InfunnelCli::CLI::ContactList
- Defined in:
- lib/infunnel_cli/cli/contact_list.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/infunnel_cli/cli/contact_list.rb', line 20 def all EloquaApiService::ContactList.new(account: [:account]).all[:elements].each do |list| puts '-'*90 list.each do |k, v| puts "#{k}: #{v}" end end end |
#find(id) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/infunnel_cli/cli/contact_list.rb', line 11 def find( id ) EloquaApiService::ContactList.new(account: [:account]).find(id: id).each do |k, v| puts "#{k}: #{v}" end end |