Class: GitMiner::MiningResult

Inherits:
Object
  • Object
show all
Defined in:
lib/git_miner/mining_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sha:, author_offset:, committer_offset:) ⇒ MiningResult

Returns a new instance of MiningResult.



5
6
7
8
9
# File 'lib/git_miner/mining_result.rb', line 5

def initialize(sha:, author_offset:, committer_offset:)
  @sha = sha
  @author_offset = author_offset
  @committer_offset = committer_offset
end

Instance Attribute Details

#author_offsetObject (readonly)

Returns the value of attribute author_offset.



3
4
5
# File 'lib/git_miner/mining_result.rb', line 3

def author_offset
  @author_offset
end

#committer_offsetObject (readonly)

Returns the value of attribute committer_offset.



3
4
5
# File 'lib/git_miner/mining_result.rb', line 3

def committer_offset
  @committer_offset
end

#shaObject (readonly)

Returns the value of attribute sha.



3
4
5
# File 'lib/git_miner/mining_result.rb', line 3

def sha
  @sha
end