about summary refs log tree commit diff
path: root/app/models/instance.rb
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-05-31 14:38:44 -0400
committerEugen Rochko <eugen@zeonfederated.com>2017-05-31 20:38:44 +0200
commita132332b861f997540f30be1b90ade4648834b5b (patch)
tree312364eef2a971ec97be48f2be71dc7702d6c578 /app/models/instance.rb
parentb25e42a77f4b3472bc519e8a394b2cfe0e063e4c (diff)
Add Instance class to list admin records (#3443)
Diffstat (limited to 'app/models/instance.rb')
-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