Sha256: 06044c4bc0a05460309d784d2a4a0dbc49328ffab5d902cf31e87e567b312bb5

Contents?: true

Size: 1.02 KB

Versions: 13

Compression:

Stored size: 1.02 KB

Contents

# encoding: utf-8

module Github
  class Activity < API
    extend AutoloadHelper

    autoload_all 'github_api/activity',
      :Events        => 'events',
      :Notifications => 'notifications',
      :Starring      => 'starring',
      :Watching      => 'watching'

    # Access to Activity::Events API
    def events(options={}, &block)
      @events ||= ApiFactory.new('Activity::Events', current_options.merge(options), &block)
    end

    # Access to Activity::Notifications API
    def notifications(options={}, &block)
      @notifications ||= ApiFactory.new('Activity::Notifications', current_options.merge(options), &block)
    end

    # Access to Activity::Starring API
    def starring(options={}, &block)
      @starring ||= ApiFactory.new('Activity::Starring', current_options.merge(options), &block)
    end

    # Access to Activity::Watching API
    def watching(options={}, &block)
      @watching ||= ApiFactory.new('Activity::Watching', current_options.merge(options), &block)
    end

  end # Activity
end # Github

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
github_api-0.11.1 lib/github_api/activity.rb
github_api-0.11.0 lib/github_api/activity.rb
github_api-0.10.2 lib/github_api/activity.rb
github_api-0.10.1 lib/github_api/activity.rb
github_api-0.10.0 lib/github_api/activity.rb
github_api-0.9.7 lib/github_api/activity.rb
github_api-0.9.6 lib/github_api/activity.rb
github_api-0.9.5 lib/github_api/activity.rb
github_api-0.9.4 lib/github_api/activity.rb
github_api-0.9.3 lib/github_api/activity.rb
github_api-0.9.2 lib/github_api/activity.rb
github_api-0.9.1 lib/github_api/activity.rb
github_api-0.9.0 lib/github_api/activity.rb