Class: HammerCLIForeman::User::InfoCommand

Inherits:
InfoCommand
  • Object
show all
Defined in:
lib/hammer_cli_foreman/user.rb

Instance Method Summary collapse

Methods inherited from InfoCommand

command_name, #print_data, #request_params, #retrieve_data

Instance Method Details

#extend_data(user) ⇒ Object



34
35
36
37
# File 'lib/hammer_cli_foreman/user.rb', line 34

def extend_data(user)
  user["full_name"] = [user["firstname"], user["lastname"]].join(' ')
  user
end