Sha256: f6b7d93e1f8c06602a609fa0277d233e2a0d3a9743e58c4ea462c386277e8947

Contents?: true

Size: 237 Bytes

Versions: 9

Compression:

Stored size: 237 Bytes

Contents

class YouTrack::Parser::CommentsParser < YouTrack::Parser::Base
  def parse
    return [] if raw["comments"].nil?
    return [raw["comments"]["comment"]] if raw["comments"]["comment"].is_a?(Hash)
    raw["comments"]["comment"]
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
you_track-0.4.8 lib/you_track/parser/comments_parser.rb
you_track-0.4.7 lib/you_track/parser/comments_parser.rb
you_track-0.4.6 lib/you_track/parser/comments_parser.rb
you_track-0.4.5 lib/you_track/parser/comments_parser.rb
you_track-0.4.4 lib/you_track/parser/comments_parser.rb
you_track-0.4.2 lib/you_track/parser/comments_parser.rb
you_track-0.4.1 lib/you_track/parser/comments_parser.rb
you_track-0.4.0 lib/you_track/parser/comments_parser.rb
you_track-0.3.0 lib/you_track/parser/comments_parser.rb