From 6b868fdb6f1d4c125eeab092d36a609c7f0e2674 Mon Sep 17 00:00:00 2001 From: izwick-schachter <isaiah@developingtechnician.com> Date: Sat, 20 Jan 2018 12:34:35 -0500 Subject: [PATCH] Added body_markdown for comments --- lib/se/api/types/comment.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/se/api/types/comment.rb b/lib/se/api/types/comment.rb index a46dfa0..dec5871 100644 --- a/lib/se/api/types/comment.rb +++ b/lib/se/api/types/comment.rb @@ -3,12 +3,13 @@ module SE module API class Comment - attr_reader :body, :link, :id, :post_id, :score, :type, :created_at, :author + attr_reader :body, :link, :id, :post_id, :score, :type, :created_at, :author, :body_markdown attr_reader :json def initialize(item_json) @json = item_json @body = item_json["body"] + @body_markdown = item_json["body_markdown"] @link = item_json["link"] @post_id = item_json["post_id"].to_i @score = item_json["score"].to_i