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

wiki_file.rb « git « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c56a17c52f3edb14761beaf3ce803d755d818452 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module Gitlab
  module Git
    class WikiFile
      attr_reader :mime_type, :raw_data, :name, :path

      def initialize(blob)
        @mime_type = blob.mime_type
        @raw_data = blob.data
        @name = File.basename(blob.name)
        @path = blob.path
      end
    end
  end
end