Sha256: b319a8103fa340608ccba552cbf6948022856ee394f879cfbf219c39800bc6b5

Contents?: true

Size: 412 Bytes

Versions: 3

Compression:

Stored size: 412 Bytes

Contents

module Octokit
  class Client
    module Timelines
      def timeline(options={})
        path = "/timeline.json"
        get(path, options, 2, false)
      end

      def user_timeline(username=login, options={})
        if authenticated?
          path = "/#{username}.private.json"
        else
          path = "/#{username}.json"
        end
        get(path, options, 2, false)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
octokit-1.0.1 lib/octokit/client/timelines.rb
octokit-1.0.0 lib/octokit/client/timelines.rb
octokit-0.6.5 lib/octokit/client/timelines.rb