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

wiki_file.rb « gitaly_client « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a2e415864e6155ee71e639b1f3fc691b266c16a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Gitlab
  module GitalyClient
    class WikiFile
      FIELDS = %i(name mime_type path raw_data).freeze

      attr_accessor(*FIELDS)

      def initialize(params)
        params = params.with_indifferent_access

        FIELDS.each do |field|
          instance_variable_set("@#{field}", params[field])
        end
      end
    end
  end
end