Sha256: e8cbdf63e716f730d68efae606ed478093be5b364bc0e30b34f8d3cc6f483a39

Contents?: true

Size: 451 Bytes

Versions: 3

Compression:

Stored size: 451 Bytes

Contents

module Outliers
  module Resources
    module Github
      class Repo < Resource
        def self.verifications
          [
            { name: 'private',
              description: 'Repo is private.' },
            { name: 'public',
              description: 'Repo is public.' }
          ]
        end

        def private?
          source.private
        end

        def public?
          !source.private
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
outliers-0.1.1 lib/outliers/resources/github/repo.rb
outliers-0.1.0 lib/outliers/resources/github/repo.rb
outliers-0.0.1 lib/outliers/resources/github/repo.rb