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
319 320 321 |
# File 'lib/ast/merge.rb', line 319 def change_set_id @change_set_id end |
#changes ⇒ Object
Returns the value of attribute changes
319 320 321 |
# File 'lib/ast/merge.rb', line 319 def changes @changes end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
319 320 321 |
# File 'lib/ast/merge.rb', line 319 def diagnostics @diagnostics end |
#side ⇒ Object
Returns the value of attribute side
319 320 321 |
# File 'lib/ast/merge.rb', line 319 def side @side end |
Instance Method Details
#to_h ⇒ Object
320 321 322 323 324 325 326 327 |
# File 'lib/ast/merge.rb', line 320 def to_h { change_set_id: change_set_id, side: side, changes: (changes || []).map(&:to_h), diagnostics: diagnostics || [] } end |