Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/lfs_download_object.rb')
-rw-r--r--app/models/lfs_download_object.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/models/lfs_download_object.rb b/app/models/lfs_download_object.rb
index 046e47262dd..ec190ebf5d8 100644
--- a/app/models/lfs_download_object.rb
+++ b/app/models/lfs_download_object.rb
@@ -19,6 +19,15 @@ class LfsDownloadObject
@headers = headers || {}
end
+ def to_hash
+ {
+ oid: oid,
+ size: size,
+ link: link,
+ headers: headers
+ }.stringify_keys
+ end
+
def sanitized_uri
@sanitized_uri ||= Gitlab::UrlSanitizer.new(link)
end