Class: Lita::GitlabCi::Author

Inherits:
Object
  • Object
show all
Defined in:
lib/lita/gitlab_ci/author.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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)
  @author = OpenStruct.new(author)
end

Instance Attribute Details

#authorObject (readonly)

Returns the value of attribute author.



4
5
6
# File 'lib/lita/gitlab_ci/author.rb', line 4

def author
  @author
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/lita/gitlab_ci/author.rb', line 10

def to_s
  "&lt;<a href=\"mailto:#{ author.email }\">#{ author.name }</a>&gt;"
end