lib/githu3/event.rb in githu3-0.0.3 vs lib/githu3/event.rb in githu3-0.0.4
- old
+ new
@@ -1,5 +1,11 @@
module Githu3
class Event < Githu3::Resource
+ embeds_one :issue
+
+ def to_s
+ "#{date}: #{actor['login']} #{event} #{issue.title}"
+ end
+
end
end
\ No newline at end of file