Class: KCommercial::KCPipeline::GitAuthor
- Inherits:
-
Object
- Object
- KCommercial::KCPipeline::GitAuthor
- Defined in:
- lib/KCommercialPipeline/core/branch_diffs.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#mail ⇒ Object
Returns the value of attribute mail.
Instance Method Summary collapse
- #init_author(author_info) ⇒ Object
-
#initialize(author_info) ⇒ GitAuthor
constructor
A new instance of GitAuthor.
Constructor Details
#initialize(author_info) ⇒ GitAuthor
Returns a new instance of GitAuthor.
12 13 14 |
# File 'lib/KCommercialPipeline/core/branch_diffs.rb', line 12 def initialize() () end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
9 10 11 |
# File 'lib/KCommercialPipeline/core/branch_diffs.rb', line 9 def @author end |
#mail ⇒ Object
Returns the value of attribute mail.
10 11 12 |
# File 'lib/KCommercialPipeline/core/branch_diffs.rb', line 10 def mail @mail end |
Instance Method Details
#init_author(author_info) ⇒ Object
16 17 18 19 20 |
# File 'lib/KCommercialPipeline/core/branch_diffs.rb', line 16 def () data = .split(" ") @author = data[0] @mail = data[1] || "" end |