Class: Capillary::CommitNode
- Inherits:
-
Object
- Object
- Capillary::CommitNode
- Defined in:
- lib/capillary/log_parser.rb
Instance Attribute Summary collapse
-
#commit ⇒ Object
readonly
Returns the value of attribute commit.
-
#parent_id ⇒ Object
readonly
Returns the value of attribute parent_id.
Instance Method Summary collapse
- #close ⇒ Object
- #closed? ⇒ Boolean
- #id ⇒ Object
-
#initialize(seq_id, commit, parent_id) ⇒ CommitNode
constructor
A new instance of CommitNode.
- #seq_id ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(seq_id, commit, parent_id) ⇒ CommitNode
Returns a new instance of CommitNode.
90 91 92 93 94 95 |
# File 'lib/capillary/log_parser.rb', line 90 def initialize(seq_id, commit, parent_id) @commit = commit @commit.seq_id = seq_id @parent_id = parent_id @closed = false end |
Instance Attribute Details
#commit ⇒ Object (readonly)
Returns the value of attribute commit.
88 89 90 |
# File 'lib/capillary/log_parser.rb', line 88 def commit @commit end |
#parent_id ⇒ Object (readonly)
Returns the value of attribute parent_id.
88 89 90 |
# File 'lib/capillary/log_parser.rb', line 88 def parent_id @parent_id end |
Instance Method Details
#close ⇒ Object
101 |
# File 'lib/capillary/log_parser.rb', line 101 def close; @closed = true; end |
#closed? ⇒ Boolean
100 |
# File 'lib/capillary/log_parser.rb', line 100 def closed?; @closed; end |
#id ⇒ Object
98 |
# File 'lib/capillary/log_parser.rb', line 98 def id; commit.id; end |
#seq_id ⇒ Object
97 |
# File 'lib/capillary/log_parser.rb', line 97 def seq_id; commit.seq_id; end |
#to_json ⇒ Object
99 |
# File 'lib/capillary/log_parser.rb', line 99 def to_json; commit.to_json; end |