Method: CommitCollection#initialize
- Defined in:
- app/models/commit_collection.rb
#initialize(container, commits, ref = nil, page: nil, per_page: nil, count: nil) ⇒ CommitCollection
container - The object the commits belong to. commits - The Commit instances to store. ref - The name of the ref (e.g. “master”).
16 17 18 19 20 21 |
# File 'app/models/commit_collection.rb', line 16 def initialize(container, commits, ref = nil, page: nil, per_page: nil, count: nil) @container = container @commits = commits @ref = ref @pagination = Gitlab::PaginationDelegate.new(page: page, per_page: per_page, count: count) end |