lib/amee/object.rb in amee-2.0.35 vs lib/amee/object.rb in amee-2.2.0
- old
+ new
@@ -1,21 +1,22 @@
module AMEE
class Object
-
+ include ParseHelper
+ extend ParseHelper # because sometimes things parse themselves in class methdos
def initialize(data = nil)
@uid = data ? data[:uid] : nil
@created = data ? data[:created] : Time.now
@modified = data ? data[:modified] : @created
@path = data ? data[:path] : nil
@name = data ? data[:name] : nil
@connection = data ? data[:connection] : nil
end
-
+
attr_accessor :connection
attr_reader :uid
attr_reader :created
attr_reader :modified
attr_reader :path
attr_reader :name
-
+
end
end
\ No newline at end of file