Sha256: dc00d24d1690b4e5036593c528c39b467a70dd196bd5a3e3baf8f15a41acabf8
Contents?: true
Size: 679 Bytes
Versions: 2
Compression:
Stored size: 679 Bytes
Contents
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 def expire_cache @connection.expire_matching(full_path+'.*') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
amee-2.5.1 | lib/amee/object.rb |
amee-2.5.0 | lib/amee/object.rb |