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.



242
243
244
# File 'lib/lazylead/system/jira.rb', line 242

def initialize(comment)
  @comment = comment
end

Instance Method Details

#include?(text) ⇒ Boolean

Check that comment has expected text

Returns:

  • (Boolean)


247
248
249
# File 'lib/lazylead/system/jira.rb', line 247

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