about summary refs log tree commit diff
path: root/app/lib/response_with_limit.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-07-01 21:51:16 +0200
committerGitHub <noreply@github.com>2020-07-01 21:51:16 +0200
commit665eb1affe7ba765af476e6f00096aad3af70735 (patch)
tree20fbd695cfc9bad551abead27a80fdb0e19567b9 /app/lib/response_with_limit.rb
parent39a0622de70dc24275808cee9526658bd68a55ed (diff)
parentf60c78ff3e42e321b457a7d63868b49bf56adfda (diff)
Merge pull request #1369 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/lib/response_with_limit.rb')
-rw-r--r--app/lib/response_with_limit.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/lib/response_with_limit.rb b/app/lib/response_with_limit.rb
new file mode 100644
index 000000000..2cc17bc5f
--- /dev/null
+++ b/app/lib/response_with_limit.rb
@@ -0,0 +1,10 @@
+# frozen_string_literal: true
+
+class ResponseWithLimit
+  def initialize(response, limit)
+    @response = response
+    @limit = limit
+  end
+
+  attr_reader :response, :limit
+end