class Gitomator::GitHub::Model::HostedRepo

Public Class Methods

new(gh_repo) click to toggle source

@param gh_repo [Sawyer::Resource]

# File lib/gitomator/github/model/hosted_repo.rb, line 10
def initialize(gh_repo)
  @r = gh_repo
end

Public Instance Methods

full_name() click to toggle source
# File lib/gitomator/github/model/hosted_repo.rb, line 19
def full_name
  @r.full_name
end
name() click to toggle source
# File lib/gitomator/github/model/hosted_repo.rb, line 15
def name
  @r.name
end
properties() click to toggle source
# File lib/gitomator/github/model/hosted_repo.rb, line 27
def properties
  return {
    :description    => @r.description,
    :homepage       => @r.homepage,
    :private        => @r.private?,
    :has_issues     => @r.has_issues?,
    :has_wiki       => @r.has_wiki?,
    :has_downloads  => @r.has_downloads?,
    :default_branch => @r.default_branch
  }
end
url() click to toggle source
# File lib/gitomator/github/model/hosted_repo.rb, line 23
def url
  @r.clone_url
end