debian-mirror-gitlab/lib/gitlab/git/wiki_file.rb

17 lines
320 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
# frozen_string_literal: true
2018-03-17 18:26:18 +05:30
module Gitlab
module Git
class WikiFile
attr_reader :mime_type, :raw_data, :name, :path
2021-04-29 21:17:54 +05:30
def initialize(blob)
@mime_type = blob.mime_type
@raw_data = blob.data
@name = File.basename(blob.name)
@path = blob.path
2021-04-17 20:07:23 +05:30
end
2018-03-17 18:26:18 +05:30
end
end
end