Class: Gitlab::Git::WikiPageVersion
- Inherits:
-
Object
- Object
- Gitlab::Git::WikiPageVersion
- Includes:
- Utils::StrongMemoize
- Defined in:
- lib/gitlab/git/wiki_page_version.rb
Instance Attribute Summary collapse
-
#commit ⇒ Object
readonly
Returns the value of attribute commit.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
Instance Method Summary collapse
- #author ⇒ Object
-
#initialize(commit, format) ⇒ WikiPageVersion
constructor
A new instance of WikiPageVersion.
Constructor Details
#initialize(commit, format) ⇒ WikiPageVersion
Returns a new instance of WikiPageVersion.
10 11 12 13 |
# File 'lib/gitlab/git/wiki_page_version.rb', line 10 def initialize(commit, format) @commit = commit @format = format end |
Instance Attribute Details
#commit ⇒ Object (readonly)
Returns the value of attribute commit.
8 9 10 |
# File 'lib/gitlab/git/wiki_page_version.rb', line 8 def commit @commit end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
8 9 10 |
# File 'lib/gitlab/git/wiki_page_version.rb', line 8 def format @format end |
Instance Method Details
#author ⇒ Object
17 18 19 20 21 |
# File 'lib/gitlab/git/wiki_page_version.rb', line 17 def strong_memoize(:author) do ::User.find_by_any_email() end end |