Class: GitCheckCI::Checker
- Inherits:
-
Object
- Object
- GitCheckCI::Checker
- Defined in:
- lib/git-check-ci/checker.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #check_and_save(hash = nil) ⇒ Object
-
#initialize(options = {}) ⇒ Checker
constructor
pass a :dir (defaults to current directory).
- #uid ⇒ Object
Constructor Details
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
12 13 14 |
# File 'lib/git-check-ci/checker.rb', line 12 def config @config end |
Instance Method Details
#check_and_save(hash = nil) ⇒ Object
21 22 23 |
# File 'lib/git-check-ci/checker.rb', line 21 def check_and_save(hash = nil) save(check(hash)) end |
#uid ⇒ Object
25 26 27 |
# File 'lib/git-check-ci/checker.rb', line 25 def uid @config.ci.project end |