Commit a375ff77 authored by John E. Vincent's avatar John E. Vincent

still pondering watchers api

parent d271e742
require 'digest/sha1'
module Noah
class Watcher < Model #NYI
# This is a "special rainbow" of a class
# Don't trust anything in here yet
# I'm still trying a few things
attribute :client
attribute :pattern
......@@ -23,6 +24,12 @@ module Noah
@name = Digest::SHA1.hexdigest "#{client}#{endpoint}#{pattern}"
end
private
def path_to_pattern
end
def pattern_to_path
end
end
class Watchers
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment