Sha256: 80bbbd0c6b043cd50dcaac8ebb727c76d13ec0d21565c1afdd348a828252a8f0
Contents?: true
Size: 452 Bytes
Versions: 11
Compression:
Stored size: 452 Bytes
Contents
# frozen_string_literal: true require "ghub" module Pennyworth module Integrations module GitHub # Provides low-level access to the GitHub API. class Client def initialize endpoint: Ghub::Endpoints::Repositories::Root.new @endpoint = endpoint end def get(path) = endpoint.index(*path.split("/")).value_or([]).map(&:to_h) private attr_reader :endpoint end end end end
Version data entries
11 entries across 11 versions & 1 rubygems