Class: Codestatus::PackageRepository
- Inherits:
-
Object
- Object
- Codestatus::PackageRepository
- Defined in:
- lib/codestatus/package_repository.rb,
lib/codestatus/package_repository/github_repository.rb
Defined Under Namespace
Classes: GitHubRepository
Instance Attribute Summary collapse
-
#github ⇒ Object
readonly
Returns the value of attribute github.
Instance Method Summary collapse
-
#initialize(github: nil) ⇒ PackageRepository
constructor
A new instance of PackageRepository.
- #status ⇒ Object
Constructor Details
#initialize(github: nil) ⇒ PackageRepository
Returns a new instance of PackageRepository.
3 4 5 6 |
# File 'lib/codestatus/package_repository.rb', line 3 def initialize(github: nil) @github = GitHubRepository.new(github) if github # bitbucket, gitlab, ... end |
Instance Attribute Details
#github ⇒ Object (readonly)
Returns the value of attribute github.
8 9 10 |
# File 'lib/codestatus/package_repository.rb', line 8 def github @github end |
Instance Method Details
#status ⇒ Object
10 11 12 13 14 |
# File 'lib/codestatus/package_repository.rb', line 10 def status if github github.status # default branch's commit's status end end |