voltei a enganar-me o que queria era isto

if username
    Services::GenerateUsername.new(username: username).generate
else
      Services::GenerateUsername.new(username: "#{first_name}#{last_name}").generate
end