From c8e60f06a17ae65fec02e6fb4d4014af2b2c8804 Mon Sep 17 00:00:00 2001 From: izwick-schachter Date: Sat, 20 Jan 2018 12:36:03 -0500 Subject: [PATCH] Added alias Comment#comment_id to match the API --- lib/se/api/types/comment.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/se/api/types/comment.rb b/lib/se/api/types/comment.rb index e342df6..89da23b 100644 --- a/lib/se/api/types/comment.rb +++ b/lib/se/api/types/comment.rb @@ -21,6 +21,7 @@ def initialize(item_json) alias_method :user, :author alias_method :owner, :author + alias_method :comment_id, :id end end end