Class: Climine::Command::User

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

Instance Method Summary collapse

Instance Method Details

#get(id = nil) ⇒ Object



4
5
6
7
# File 'lib/climine/command/user.rb', line 4

def get(id=nil)
  say("required user id!", :red) unless id
  render :user, redmine.user(id)
end

#listObject



11
12
13
# File 'lib/climine/command/user.rb', line 11

def list
  render :users, redmine.users(options.to_hash)
end