Class: Ast::Merge::PCS

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#base_revisionObject

Returns the value of attribute base_revision

Returns:

  • (Object)

    the current value of base_revision



293
294
295
# File 'lib/ast/merge.rb', line 293

def base_revision
  @base_revision
end

#constraintsObject

Returns the value of attribute constraints

Returns:

  • (Object)

    the current value of constraints



293
294
295
# File 'lib/ast/merge.rb', line 293

def constraints
  @constraints
end

#pcs_idObject

Returns the value of attribute pcs_id

Returns:

  • (Object)

    the current value of pcs_id



293
294
295
# File 'lib/ast/merge.rb', line 293

def pcs_id
  @pcs_id
end

#tree_idObject

Returns the value of attribute tree_id

Returns:

  • (Object)

    the current value of tree_id



293
294
295
# File 'lib/ast/merge.rb', line 293

def tree_id
  @tree_id
end

Instance Method Details

#to_hObject



294
295
296
297
298
299
300
301
# File 'lib/ast/merge.rb', line 294

def to_h
  {
    pcs_id: pcs_id,
    tree_id: tree_id,
    base_revision: base_revision,
    constraints: (constraints || []).map(&:to_h)
  }
end