Sha256: 1a16f78058a45f9c2eb393297a54c1305ae0845a9b159f65970e1edf4cfa5eb6

Contents?: true

Size: 339 Bytes

Versions: 1

Compression:

Stored size: 339 Bytes

Contents

class Nachos
  
  class Github
    attr_reader :client
    
    def initialize(github_user, github_token)
      @client = Octopussy::Client.new(:login => github_user, :token => github_token)
    end
    
    def watched
      client.watched.sort_by do |repo|
        [repo["owner"], repo["name"]].join("/")
      end
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nachos-0.0.1 lib/nachos/github.rb