Class: Decidim::GithubManager::Querier::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/decidim/github_manager/querier/base.rb

Overview

Base class that allows making GET requests to GitHub Rest API about Issues and Pull Requests This must be inherited from other class with the following methods:

  • call

  • uri

Direct Known Subclasses

ByIssueId, ByLabel, RelatedIssues

Defined Under Namespace

Classes: InvalidMetadataError

Instance Method Summary collapse

Constructor Details

#initialize(token:) ⇒ Base

Returns a new instance of Base.



18
19
20
# File 'lib/decidim/github_manager/querier/base.rb', line 18

def initialize(token:)
  @token = token
end

Instance Method Details

#callObject



22
23
24
# File 'lib/decidim/github_manager/querier/base.rb', line 22

def call
  raise "Not implemented"
end