Class: InfunnelCli::CLI::User
- Defined in:
- lib/infunnel_cli/cli/user.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/infunnel_cli/cli/user.rb', line 19 def all EloquaApiService::User.new(account: [: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: [:account]).find(id: id).each do |k, v| puts "#{k}: #{format_value(k,v)}" end end |