Class: RepoParser::Repository

Inherits:
Struct
  • Object
show all
Defined in:
lib/repo_parser.rb

Overview

Repository represents a repository

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#forkObject

Returns the value of attribute fork

Returns:

  • (Object)

    the current value of fork



64
65
66
# File 'lib/repo_parser.rb', line 64

def fork
  @fork
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



64
65
66
# File 'lib/repo_parser.rb', line 64

def name
  @name
end

#ownerObject

Returns the value of attribute owner

Returns:

  • (Object)

    the current value of owner



64
65
66
# File 'lib/repo_parser.rb', line 64

def owner
  @owner
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



64
65
66
# File 'lib/repo_parser.rb', line 64

def url
  @url
end

Instance Method Details

#to_sObject



65
66
67
68
69
70
71
72
73
# File 'lib/repo_parser.rb', line 65

def to_s
  <<-STRING
    #{name}:
      name:  #{name}
      url:   #{url}
      owner: #{owner}
    ----------
  STRING
end