Class: Dd2tf::User

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

Constant Summary

Constants inherited from Base

Base::UNALLOWED_RESOURCE_TITLE_REGEXP

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Dd2tf::Base

Instance Method Details

#outputObject



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/dd2tf/user.rb', line 4

def output
  users = @client.get_all_users[1]["users"]

  results = []
  users.each do |user|
    user_name = user["name"].to_s.underscore.gsub(" ", "_").gsub(UNALLOWED_RESOURCE_TITLE_REGEXP, '')
    renderer = renderer()
    results << renderer.result(binding)
  end

  results
end