lib/waddup/event.rb in waddup-0.1.0 vs lib/waddup/event.rb in waddup-0.2.0
- old
+ new
@@ -7,8 +7,17 @@
def initialize
yield self if block_given?
end
+ def to_json(state)
+ {
+ :label => label,
+ :at => at,
+ :until => @until,
+ :source => source.class::ALIAS
+ }.to_json
+ end
+
end
end