1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class VirtualMachine < ArvadosBase
6 attr_accessor :current_user_logins
12 def attributes_for_display
13 super.append ['current_user_logins', @current_user_logins]
16 def editable_attributes
17 super - %w(current_user_logins)
20 def self.attribute_info
21 merger = ->(k,a,b) { a.merge(b, &merger) }
23 {current_user_logins: {column_heading: "logins", type: 'array'}},
27 def friendly_link_name lookup=nil
28 (hostname && !hostname.empty?) ? hostname : uuid