Class: TreeHaver::EditProjectionExecutionResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#applied_operationsObject

Returns the value of attribute applied_operations

Returns:

  • (Object)

    the current value of applied_operations



441
442
443
# File 'lib/tree_haver/contracts.rb', line 441

def applied_operations
  @applied_operations
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



441
442
443
# File 'lib/tree_haver/contracts.rb', line 441

def diagnostics
  @diagnostics
end

#okObject

Returns the value of attribute ok

Returns:

  • (Object)

    the current value of ok



441
442
443
# File 'lib/tree_haver/contracts.rb', line 441

def ok
  @ok
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



441
442
443
# File 'lib/tree_haver/contracts.rb', line 441

def source
  @source
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



441
442
443
# File 'lib/tree_haver/contracts.rb', line 441

def status
  @status
end

Instance Method Details

#to_hObject



443
444
445
446
447
448
449
450
451
# File 'lib/tree_haver/contracts.rb', line 443

def to_h
  {
    ok: ok,
    status: status,
    source: source,
    applied_operations: (applied_operations || []).map(&:to_h),
    diagnostics: (diagnostics || []).map(&:to_h)
  }
end