Class: YouTrack::Parser::CommentsParser
- Defined in:
- lib/you_track/parser/comments_parser.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from YouTrack::Parser::Base
Instance Method Details
#parse ⇒ Object
2 3 4 5 6 |
# File 'lib/you_track/parser/comments_parser.rb', line 2 def parse return [] if raw["comments"].nil? return [raw["comments"]["comment"]] if raw["comments"]["comment"].is_a?(Hash) raw["comments"]["comment"] end |