lib/meducation_sdk/resources/vote.rb in meducation_sdk-1.5.7 vs lib/meducation_sdk/resources/vote.rb in meducation_sdk-1.6.0

- old
+ new

@@ -1,10 +1,11 @@ module MeducationSDK class Vote < Resource self.path = "/votes" + self.spi_type = "Item::Vote" 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