Class: Lita::GitlabCi::Author
- Inherits:
-
Object
- Object
- Lita::GitlabCi::Author
- Defined in:
- lib/lita/gitlab_ci/author.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
readonly
Returns the value of attribute author.
Instance Method Summary collapse
-
#initialize(author) ⇒ Author
constructor
A new instance of Author.
- #to_s ⇒ Object
Constructor Details
#initialize(author) ⇒ Author
Returns a new instance of Author.
6 7 8 |
# File 'lib/lita/gitlab_ci/author.rb', line 6 def initialize() @author = OpenStruct.new() end |
Instance Attribute Details
#author ⇒ Object (readonly)
Returns the value of attribute author.
4 5 6 |
# File 'lib/lita/gitlab_ci/author.rb', line 4 def @author end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/lita/gitlab_ci/author.rb', line 10 def to_s "<<a href=\"mailto:#{ .email }\">#{ .name }</a>>" end |