Sha256: a41adbf2743928088924e82796ab2e41c585e37ccf15a919d51764ce4923130b

Contents?: true

Size: 949 Bytes

Versions: 2

Compression:

Stored size: 949 Bytes

Contents

# encoding: utf-8

module Github
  class Activity < API

    Github::require_all 'github_api/activity',
      'events',
      'notifications',
      'starring',
      '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

2 entries across 2 versions & 1 rubygems

Version Path
github_api-0.11.3 lib/github_api/activity.rb
github_api-0.11.2 lib/github_api/activity.rb