Sha256: 84f1b0f7cda7606dd7d5b2815dd4edcc19137e63e19f933364b1f621cfbbb0f6

Contents?: true

Size: 542 Bytes

Versions: 9

Compression:

Stored size: 542 Bytes

Contents

module PairingMatrix
  class Config
    attr_reader :repos, :authors_regex, :github_access_token, :github_repos

    def initialize(repos, authors_regex, github_access_token, github_repos)
      @repos = repos
      @authors_regex = authors_regex
      @github_access_token = github_access_token
      @github_repos = github_repos
    end

    def fetch_from_github?
      !@github_repos.nil? && !@github_repos.empty?
    end

    def has_github_access_token?
      !@github_access_token.nil? && !@github_access_token.empty?
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pairing_matrix-2.2 lib/pairing_matrix/config/config.rb
pairing_matrix-2.1.1 lib/pairing_matrix/config/config.rb
pairing_matrix-2.1 lib/pairing_matrix/config/config.rb
pairing_matrix-2.0 lib/pairing_matrix/config/config.rb
pairing_matrix-1.2 lib/pairing_matrix/config/config.rb
pairing_matrix-1.1.1 lib/pairing_matrix/config/config.rb
pairing_matrix-1.1 lib/pairing_matrix/config/config.rb
pairing_matrix-1.0.1 lib/pairing_matrix/config/config.rb
pairing_matrix-1.0 lib/pairing_matrix/config/config.rb