Class: WhatTheGem::Gem::GitHub

Inherits:
Object
  • Object
show all
Defined in:
lib/whatthegem/gem/github.rb

Defined Under Namespace

Classes: Path

Constant Summary collapse

CHANGELOG_PATTERN =
/^(history|changelog|changes)(\.\w+)?$/i

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repo_id) ⇒ GitHub

Returns a new instance of GitHub.



19
20
21
# File 'lib/whatthegem/gem/github.rb', line 19

def initialize(repo_id)
  @repo_id = repo_id
end

Instance Attribute Details

#repo_idObject (readonly)

Returns the value of attribute repo_id.



17
18
19
# File 'lib/whatthegem/gem/github.rb', line 17

def repo_id
  @repo_id
end

Instance Method Details

#contents(path = '.') ⇒ Object Also known as: files



45
46
47
# File 'lib/whatthegem/gem/github.rb', line 45

def contents(path = '.')
  req(:contents, path: path)
end