1 class VirtualMachine < ArvadosBase
2 attr_accessor :current_user_logins
8 def attributes_for_display
9 super.append ['current_user_logins', @current_user_logins]
12 def editable_attributes
13 super - %w(current_user_logins)
16 def self.attribute_info
17 merger = ->(k,a,b) { a.merge(b, &merger) }
19 {current_user_logins: {column_heading: "logins", type: 'array'}},
23 def friendly_link_name lookup=nil
24 (hostname && !hostname.empty?) ? hostname : uuid