Class: Ast::Merge::ChangeSet
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::ChangeSet
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#change_set_id ⇒ Object
Returns the value of attribute change_set_id.
-
#changes ⇒ Object
Returns the value of attribute changes.
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#side ⇒ Object
Returns the value of attribute side.
Instance Method Summary collapse
Instance Attribute Details
#change_set_id ⇒ Object
Returns the value of attribute change_set_id
297 298 299 |
# File 'lib/ast/merge.rb', line 297 def change_set_id @change_set_id end |
#changes ⇒ Object
Returns the value of attribute changes
297 298 299 |
# File 'lib/ast/merge.rb', line 297 def changes @changes end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
297 298 299 |
# File 'lib/ast/merge.rb', line 297 def diagnostics @diagnostics end |
#side ⇒ Object
Returns the value of attribute side
297 298 299 |
# File 'lib/ast/merge.rb', line 297 def side @side end |
Instance Method Details
#to_h ⇒ Object
298 299 300 301 302 303 304 305 |
# File 'lib/ast/merge.rb', line 298 def to_h { change_set_id: change_set_id, side: side, changes: (changes || []).map(&:to_h), diagnostics: diagnostics || [] } end |