Class: Gitlab::Search::FoundWikiPage
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Gitlab::Search::FoundWikiPage
- Defined in:
- lib/gitlab/search/found_wiki_page.rb
Instance Attribute Summary collapse
-
#wiki ⇒ Object
readonly
Returns the value of attribute wiki.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(found_blob) ⇒ FoundWikiPage
constructor
A new instance of FoundWikiPage.
- #to_ability_name ⇒ Object
Constructor Details
#initialize(found_blob) ⇒ FoundWikiPage
Returns a new instance of FoundWikiPage.
15 16 17 18 19 |
# File 'lib/gitlab/search/found_wiki_page.rb', line 15 def initialize(found_blob) super @wiki ||= found_blob.project.wiki end |
Instance Attribute Details
#wiki ⇒ Object (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_class ⇒ Object
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_name ⇒ Object
21 22 23 |
# File 'lib/gitlab/search/found_wiki_page.rb', line 21 def to_ability_name 'wiki_page' end |