Skip to content

Commit

Permalink
Added body_markdown for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
isaiahzs committed Jan 20, 2018
1 parent 1111021 commit 6b868fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/se/api/types/comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b868fd

Please sign in to comment.