From a132332b861f997540f30be1b90ade4648834b5b Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Wed, 31 May 2017 14:38:44 -0400 Subject: Add Instance class to list admin records (#3443) --- app/models/instance.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 app/models/instance.rb (limited to 'app/models') diff --git a/app/models/instance.rb b/app/models/instance.rb new file mode 100644 index 000000000..6d5c9c2ab --- /dev/null +++ b/app/models/instance.rb @@ -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 -- cgit