Class: Gitlab::Search::FoundWikiPage

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/gitlab/search/found_wiki_page.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(found_blob) ⇒ FoundWikiPage

Returns a new instance of FoundWikiPage.

Parameters:


15
16
17
18
# File 'lib/gitlab/search/found_wiki_page.rb', line 15

def initialize(found_blob)
  super
  @wiki = found_blob.project.wiki
end

Instance Attribute Details

#wikiObject (readonly)

Returns the value of attribute wiki


8
9
10
# File 'lib/gitlab/search/found_wiki_page.rb', line 8

def wiki
  @wiki
end

Class Method Details

.declarative_policy_classObject


10
11
12
# File 'lib/gitlab/search/found_wiki_page.rb', line 10

def self.declarative_policy_class
  'WikiPagePolicy'
end

Instance Method Details

#to_ability_nameObject


20
21
22
# File 'lib/gitlab/search/found_wiki_page.rb', line 20

def to_ability_name
  'wiki_page'
end