Add Instance class to list admin records (#3443)
parent
533a8cc68b
commit
deb4ae7392
@ -0,0 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Instance
|
||||
include ActiveModel::Model
|
||||
|
||||
attr_accessor :domain, :accounts_count
|
||||
|
||||
def initialize(account)
|
||||
@domain = account.domain
|
||||
@accounts_count = account.accounts_count
|
||||
end
|
||||
end
|
Loading…
Reference in new issue