lib/github_api/activity.rb in github_api-0.8.11 vs lib/github_api/activity.rb in github_api-0.9.0

- old
+ new

@@ -8,32 +8,27 @@ :Events => 'events', :Notifications => 'notifications', :Starring => 'starring', :Watching => 'watching' - # Create new Activity API - def initialize(options = {}) - super(options) - end - # Access to Activity::Events API - def events(options = {}) - @events ||= ApiFactory.new 'Activity::Events', options + def events(options={}, &block) + @events ||= ApiFactory.new('Activity::Events', current_options.merge(options), &block) end # Access to Activity::Notifications API - def notifications - @notifications ||= ApiFactory.new 'Activity::Notifications' + def notifications(options={}, &block) + @notifications ||= ApiFactory.new('Activity::Notifications', current_options.merge(options), &block) end # Access to Activity::Starring API - def starring - @starring ||= ApiFactory.new 'Activity::Starring' + def starring(options={}, &block) + @starring ||= ApiFactory.new('Activity::Starring', current_options.merge(options), &block) end # Access to Activity::Watching API - def watching - @watching ||= ApiFactory.new 'Activity::Watching' + def watching(options={}, &block) + @watching ||= ApiFactory.new('Activity::Watching', current_options.merge(options), &block) end end # Activity end # Github