Class: TreeHaver::EditProjectionProviderMatrix

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



498
499
500
# File 'lib/tree_haver/contracts.rb', line 498

def diagnostics
  @diagnostics
end

#operationsObject

Returns the value of attribute operations

Returns:

  • (Object)

    the current value of operations



498
499
500
# File 'lib/tree_haver/contracts.rb', line 498

def operations
  @operations
end

#providersObject

Returns the value of attribute providers

Returns:

  • (Object)

    the current value of providers



498
499
500
# File 'lib/tree_haver/contracts.rb', line 498

def providers
  @providers
end

Instance Method Details

#to_hObject



499
500
501
502
503
504
505
# File 'lib/tree_haver/contracts.rb', line 499

def to_h
  {
    operations: operations || [],
    providers: (providers || []).map(&:to_h),
    diagnostics: diagnostics || []
  }
end