lib/meducation_sdk/resource.rb in meducation_sdk-1.5.0 vs lib/meducation_sdk/resource.rb in meducation_sdk-1.5.1
- old
+ new
@@ -1,6 +1,14 @@
module MeducationSDK
class Resource < Loquor::Resource
+ def created_at
+ DateTime.parse(@data[:created_at])
+ end
+
+ def updated_at
+ DateTime.parse(@data[:updated_at])
+ end
+
def class_for(meducation_type)
case meducation_type
when "Item::Comment"
Comment
else