Class: Commit
- Inherits:
-
Object
- Object
- Commit
- Defined in:
- lib/data/commit.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#summary ⇒ Object
Returns the value of attribute summary.
Instance Method Summary collapse
-
#initialize(summary, errors = {}) ⇒ Commit
constructor
A new instance of Commit.
Constructor Details
#initialize(summary, errors = {}) ⇒ Commit
Returns a new instance of Commit.
6 7 8 9 |
# File 'lib/data/commit.rb', line 6 def initialize(summary, errors = {}) @summary = summary @errors = errors end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
4 5 6 |
# File 'lib/data/commit.rb', line 4 def errors @errors end |
#summary ⇒ Object
Returns the value of attribute summary.
4 5 6 |
# File 'lib/data/commit.rb', line 4 def summary @summary end |