about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/instance.rb12
1 files changed, 12 insertions, 0 deletions
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