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



271
272
273
# File 'lib/ast/merge.rb', line 271

def base_revision
  @base_revision
end

#constraintsObject

Returns the value of attribute constraints

Returns:

  • (Object)

    the current value of constraints



271
272
273
# File 'lib/ast/merge.rb', line 271

def constraints
  @constraints
end

#pcs_idObject

Returns the value of attribute pcs_id

Returns:

  • (Object)

    the current value of pcs_id



271
272
273
# File 'lib/ast/merge.rb', line 271

def pcs_id
  @pcs_id
end

#tree_idObject

Returns the value of attribute tree_id

Returns:

  • (Object)

    the current value of tree_id



271
272
273
# File 'lib/ast/merge.rb', line 271

def tree_id
  @tree_id
end

Instance Method Details

#to_hObject



272
273
274
275
276
277
278
279
# File 'lib/ast/merge.rb', line 272

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