Class: Ast::Merge::ChangeSet

Inherits:
Struct
  • Object
show all
Defined in:
lib/ast/merge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#change_set_idObject

Returns the value of attribute change_set_id

Returns:

  • (Object)

    the current value of change_set_id



297
298
299
# File 'lib/ast/merge.rb', line 297

def change_set_id
  @change_set_id
end

#changesObject

Returns the value of attribute changes

Returns:

  • (Object)

    the current value of changes



297
298
299
# File 'lib/ast/merge.rb', line 297

def changes
  @changes
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



297
298
299
# File 'lib/ast/merge.rb', line 297

def diagnostics
  @diagnostics
end

#sideObject

Returns the value of attribute side

Returns:

  • (Object)

    the current value of side



297
298
299
# File 'lib/ast/merge.rb', line 297

def side
  @side
end

Instance Method Details

#to_hObject



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