Class: Cheatly::Adapter::GitHub
- Inherits:
-
Object
- Object
- Cheatly::Adapter::GitHub
- Defined in:
- lib/cheatly/adapter/github.rb
Constant Summary collapse
- FOLDER =
'sheets'- REPO =
'arthurnn/cheatly'
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
17 18 19 20 |
# File 'lib/cheatly/adapter/github.rb', line 17 def all response = Octokit.contents(REPO, path: "#{FOLDER}") response.map { |f| f.name.gsub(/\.[a-z]+\z/, '') } end |
#create ⇒ Object
22 23 24 |
# File 'lib/cheatly/adapter/github.rb', line 22 def create raise NotImplementedError end |