Class: InfunnelCli::CLI::User

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

Instance Method Summary collapse

Instance Method Details

#allObject



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

def all
  EloquaApiService::User.new(account: options[:account]).all[:elements].each do |user|
    puts '-'*90
    user.each do |k, v|
      puts "#{k}: #{format_value(k,v)}"
    end
  end
end

#find(id) ⇒ Object



11
12
13
14
15
# File 'lib/infunnel_cli/cli/user.rb', line 11

def find( id )
  EloquaApiService::User.new(account: options[:account]).find(id: id).each do |k, v|
    puts "#{k}: #{format_value(k,v)}"
  end
end