Class: KCommercial::KCPipeline::GitAuthor

Inherits:
Object
  • Object
show all
Defined in:
lib/KCommercialPipeline/core/branch_diffs.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(author_info)
   init_author(author_info)
end

Instance Attribute Details

#authorObject

Returns the value of attribute author.



9
10
11
# File 'lib/KCommercialPipeline/core/branch_diffs.rb', line 9

def author
  @author
end

#mailObject

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 init_author(author_info)
   data = author_info.split(" ")
   @author = data[0]
   @mail = data[1] || ""
end