Class: Gitlab::Git::WikiFile

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/git/wiki_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gitaly_file) ⇒ WikiFile

This class wraps Gitlab::GitalyClient::WikiFile


9
10
11
12
13
14
# File 'lib/gitlab/git/wiki_file.rb', line 9

def initialize(gitaly_file)
  @mime_type = gitaly_file.mime_type
  @raw_data = gitaly_file.raw_data
  @name = gitaly_file.name
  @path = gitaly_file.path
end

Instance Attribute Details

#mime_typeObject (readonly)

Returns the value of attribute mime_type


6
7
8
# File 'lib/gitlab/git/wiki_file.rb', line 6

def mime_type
  @mime_type
end

#nameObject (readonly)

Returns the value of attribute name


6
7
8
# File 'lib/gitlab/git/wiki_file.rb', line 6

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path


6
7
8
# File 'lib/gitlab/git/wiki_file.rb', line 6

def path
  @path
end

#raw_dataObject (readonly)

Returns the value of attribute raw_data


6
7
8
# File 'lib/gitlab/git/wiki_file.rb', line 6

def raw_data
  @raw_data
end