Class: GrokCLI::Git::Log::Entry

Inherits:
Object
  • Object
show all
Includes:
ERB::Util
Defined in:
lib/grok_cli/git/log.rb

Instance Method Summary collapse

Constructor Details

#initialize(ticket:, commits:) ⇒ Entry

Returns a new instance of Entry.



48
49
50
51
# File 'lib/grok_cli/git/log.rb', line 48

def initialize(ticket:, commits:)
  @ticket = ticket
  @commits = commits
end

Instance Method Details

#to_sObject



53
54
55
56
57
58
59
60
# File 'lib/grok_cli/git/log.rb', line 53

def to_s
  ERB.new(<<~DOC
  #{ticket}

  #{commit_log}
  DOC
  ).result(binding)
end