class MetaCommit::Models::Changes::Repository
Collection of commit changes @attr [String] repo_id
@attr [Array<MetaCommit::Models::Commit>] commit_changes
Attributes
commit_changes[RW]
repo_id[RW]
Public Class Methods
new(repo_id)
click to toggle source
@param [String] repo_id
# File lib/meta_commit/models/changes/repository.rb, line 9 def initialize(repo_id) @repo_id = repo_id @commit_changes = [] end
Public Instance Methods
each(&block)
click to toggle source
@yield commit changes
# File lib/meta_commit/models/changes/repository.rb, line 21 def each(&block) @commit_changes.each(&block) end
empty?()
click to toggle source
@return [Boolean]
# File lib/meta_commit/models/changes/repository.rb, line 26 def empty? @commit_changes.empty? end
push(commit_change)
click to toggle source
@param [MetaCommit::Models::Commit] commit_change
# File lib/meta_commit/models/changes/repository.rb, line 16 def push(commit_change) @commit_changes.push(commit_change) end