Sha256: 3b9005fa4e34e3bad071f33579cc6a70675b6961894f45938ace2d1eb58acf28

Contents?: true

Size: 281 Bytes

Versions: 4

Compression:

Stored size: 281 Bytes

Contents

module Brief::GithubClient
  class UserActivity < Request
    requires :user

    def endpoint
      "users/#{user}/events"
    end

    def organization_repos
      all.select do |item|
        item.repo && item.repo.name.try(:match,org) rescue false
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
brief-0.0.5 lib/brief/github_client/user_activity.rb
brief-0.0.4 lib/brief/github_client/user_activity.rb
brief-0.0.3 lib/brief/github_client/user_activity.rb
brief-0.0.2 lib/brief/github_client/user_activity.rb