Class: Renogen::ChangeLog::Group
- Inherits:
-
Object
- Object
- Renogen::ChangeLog::Group
- Defined in:
- lib/renogen/change_log/group.rb
Overview
Object to represent a group of changes
Instance Attribute Summary collapse
-
#changes ⇒ Object
readonly
Returns the value of attribute changes.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#add(new_change) ⇒ Object
Add change to the groups change list.
-
#initialize(group_name, options = {}) ⇒ Group
constructor
A new instance of Group.
Constructor Details
#initialize(group_name, options = {}) ⇒ Group
Returns a new instance of Group.
7 8 9 10 |
# File 'lib/renogen/change_log/group.rb', line 7 def initialize(group_name, ={}) @name = group_name @changes ||= [] end |
Instance Attribute Details
#changes ⇒ Object (readonly)
Returns the value of attribute changes.
5 6 7 |
# File 'lib/renogen/change_log/group.rb', line 5 def changes @changes end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/renogen/change_log/group.rb', line 5 def name @name end |
Instance Method Details
#add(new_change) ⇒ Object
Add change to the groups change list
15 16 17 |
# File 'lib/renogen/change_log/group.rb', line 15 def add(new_change) @changes << new_change end |