Class: InfunnelCli::CLI::ContactSegment

Inherits:
Base
  • Object
show all
Defined in:
lib/infunnel_cli/cli/contact_segment.rb

Instance Method Summary collapse

Instance Method Details

#allObject



20
21
22
23
24
25
26
27
# File 'lib/infunnel_cli/cli/contact_segment.rb', line 20

def all
  EloquaApiService::ContactSegment.new(account: options[:account]).all[:elements].each do |segment|
    puts '-'*90
    segment.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_segment.rb', line 11

def find( id )
  EloquaApiService::ContactSegment.new(account: options[:account]).find(id: id).each do |k, v|

    puts "#{k}: #{v}"
  end
end