lib/meducation_sdk/resources/comment.rb in meducation_sdk-1.5.7 vs lib/meducation_sdk/resources/comment.rb in meducation_sdk-1.6.0
- old
+ new
@@ -1,10 +1,11 @@
module MeducationSDK
class Comment < Resource
self.path = "/comments"
+ self.spi_type = "Item::Comment"
def item
- @item ||= class_for(item_type).find(item_id)
+ @item ||= sdk_class_for(item_type).find(item_id)
end
def user
@user ||= User.find(user_id)
end