Class: AgileNotifier::SCM::Repository
- Inherits:
-
Object
- Object
- AgileNotifier::SCM::Repository
- Defined in:
- lib/agile_notifier/scm.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#repo ⇒ Object
Returns the value of attribute repo.
-
#url ⇒ Object
Returns the value of attribute url.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
- #get_commit(revision) ⇒ Object
- #get_committer_of_a_commit(revision) ⇒ Object
-
#initialize(args) ⇒ Repository
constructor
A new instance of Repository.
Constructor Details
#initialize(args) ⇒ Repository
Returns a new instance of Repository.
26 27 28 29 30 |
# File 'lib/agile_notifier/scm.rb', line 26 def initialize(args) @user = args[:user] @repo = args[:repo] @url = args[:url] end |
Instance Attribute Details
#repo ⇒ Object
Returns the value of attribute repo.
24 25 26 |
# File 'lib/agile_notifier/scm.rb', line 24 def repo @repo end |
#url ⇒ Object
Returns the value of attribute url.
24 25 26 |
# File 'lib/agile_notifier/scm.rb', line 24 def url @url end |
#user ⇒ Object
Returns the value of attribute user.
24 25 26 |
# File 'lib/agile_notifier/scm.rb', line 24 def user @user end |
Instance Method Details
#get_commit(revision) ⇒ Object
32 33 34 |
# File 'lib/agile_notifier/scm.rb', line 32 def get_commit(revision) raise(NotImplementedError, "Abstract method [#{__method__}] is called, please implement", caller) end |
#get_committer_of_a_commit(revision) ⇒ Object
36 37 38 |
# File 'lib/agile_notifier/scm.rb', line 36 def get_committer_of_a_commit(revision) raise(NotImplementedError, "Abstract method [#{__method__}] is called, please implement", caller) end |