Sha256: a50967186959dfea10aff3dc2f7983ce2d1d49b413880be3ac69b6980df4d8c4

Contents?: true

Size: 912 Bytes

Versions: 12

Compression:

Stored size: 912 Bytes

Contents

# encoding: utf-8

module Github
  class Activity < API
    extend AutoloadHelper

    autoload_all 'github_api/activity',
      :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
    end

    # Access to Activity::Notifications API
    def notifications
      @notifications ||= ApiFactory.new 'Activity::Notifications'
    end

    # Access to Activity::Starring API
    def starring
      @starring ||= ApiFactory.new 'Activity::Starring'
    end

    # Access to Activity::Watching API
    def watching
      @watching ||= ApiFactory.new 'Activity::Watching'
    end

  end # Activity
end # Github

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
github_api-0.8.11 lib/github_api/activity.rb
github_api-0.8.10 lib/github_api/activity.rb
github_api-0.8.9 lib/github_api/activity.rb
github_api-0.8.8 lib/github_api/activity.rb
github_api-0.8.7 lib/github_api/activity.rb
github_api-0.8.6 lib/github_api/activity.rb
github_api-0.8.5 lib/github_api/activity.rb
github_api-0.8.4 lib/github_api/activity.rb
github_api-0.8.3 lib/github_api/activity.rb
github_api-0.8.2 lib/github_api/activity.rb
github_api-0.8.1 lib/github_api/activity.rb
github_api-0.8.0 lib/github_api/activity.rb