Class: Lazylead::Comment

Inherits:
Object
  • Object
show all
Defined in:
lib/lazylead/system/jira.rb

Overview

Comment in jira ticket

Instance Method Summary collapse

Constructor Details

#initialize(comment) ⇒ Comment

Returns a new instance of Comment.



303
304
305
# File 'lib/lazylead/system/jira.rb', line 303

def initialize(comment)
  @comment = comment
end

Instance Method Details

#include?(text) ⇒ Boolean

Check that comment has expected text

Returns:

  • (Boolean)


308
309
310
# File 'lib/lazylead/system/jira.rb', line 308

def include?(text)
  @comment.attrs["body"].include? text
end