Class: TreeHaver::ProcessImportInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#itemsObject

Returns the value of attribute items

Returns:

  • (Object)

    the current value of items



358
359
360
# File 'lib/tree_haver/contracts.rb', line 358

def items
  @items
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



358
359
360
# File 'lib/tree_haver/contracts.rb', line 358

def source
  @source
end

#spanObject

Returns the value of attribute span

Returns:

  • (Object)

    the current value of span



358
359
360
# File 'lib/tree_haver/contracts.rb', line 358

def span
  @span
end

Instance Method Details

#to_hObject



359
360
361
362
363
364
365
# File 'lib/tree_haver/contracts.rb', line 359

def to_h
  {
    source: source,
    items: deep_dup(items || []),
    span: span.to_h
  }
end