class Gitlang::Repository
Class representing a GitHub organization's repository.
Public Class Methods
new(organization_name, repository_name, client)
click to toggle source
# File lib/gitlang/repository.rb, line 8 def initialize(organization_name, repository_name, client) @organization_name = organization_name @name = repository_name @client = client end
Public Instance Methods
full_name()
click to toggle source
Returns the full name of the repository as a string.
# File lib/gitlang/repository.rb, line 15 def full_name @organization_name + '/' + @name end
languages()
click to toggle source
Returns a hash containing the absolute usage of each language.
# File lib/gitlang/repository.rb, line 20 def languages conditional_rescue { @client.languages(full_name) } end