Class: TreeHaver::EditProjectionOperationRequest

Inherits:
Struct
  • Object
show all
Defined in:
lib/tree_haver/contracts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#operationObject

Returns the value of attribute operation

Returns:

  • (Object)

    the current value of operation



404
405
406
# File 'lib/tree_haver/contracts.rb', line 404

def operation
  @operation
end

#replacement_sourceObject

Returns the value of attribute replacement_source

Returns:

  • (Object)

    the current value of replacement_source



404
405
406
# File 'lib/tree_haver/contracts.rb', line 404

def replacement_source
  @replacement_source
end

#target_node_idObject

Returns the value of attribute target_node_id

Returns:

  • (Object)

    the current value of target_node_id



404
405
406
# File 'lib/tree_haver/contracts.rb', line 404

def target_node_id
  @target_node_id
end

#target_node_pathObject

Returns the value of attribute target_node_path

Returns:

  • (Object)

    the current value of target_node_path



404
405
406
# File 'lib/tree_haver/contracts.rb', line 404

def target_node_path
  @target_node_path
end

Instance Method Details

#to_hObject



406
407
408
409
410
411
412
413
# File 'lib/tree_haver/contracts.rb', line 406

def to_h
  {
    operation: operation,
    target_node_id: target_node_id,
    target_node_path: target_node_path,
    replacement_source: replacement_source
  }
end