class GithubGo2Rpm::Repository
Attributes
details[R]
Public Class Methods
new(repository)
click to toggle source
# File lib/githubgo2rpm.rb, line 9 def initialize(repository) @repo = repository fetch end
Private Instance Methods
fetch()
click to toggle source
# File lib/githubgo2rpm.rb, line 16 def fetch uri = URI("https://api.github.com/repos/#{@repo}") @details = JSON.parse(Net::HTTP.get(uri)) end