Class: TreeHaver::ZipMemberDecision

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dispositionObject

Returns the value of attribute disposition

Returns:

  • (Object)

    the current value of disposition



284
285
286
# File 'lib/tree_haver/contracts.rb', line 284

def disposition
  @disposition
end

#nested_familyObject

Returns the value of attribute nested_family

Returns:

  • (Object)

    the current value of nested_family



284
285
286
# File 'lib/tree_haver/contracts.rb', line 284

def nested_family
  @nested_family
end

#normalized_pathObject

Returns the value of attribute normalized_path

Returns:

  • (Object)

    the current value of normalized_path



284
285
286
# File 'lib/tree_haver/contracts.rb', line 284

def normalized_path
  @normalized_path
end

#operationObject

Returns the value of attribute operation

Returns:

  • (Object)

    the current value of operation



284
285
286
# File 'lib/tree_haver/contracts.rb', line 284

def operation
  @operation
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



284
285
286
# File 'lib/tree_haver/contracts.rb', line 284

def reason
  @reason
end

Instance Method Details

#to_hObject



285
286
287
288
289
290
291
292
293
# File 'lib/tree_haver/contracts.rb', line 285

def to_h
  {
    normalized_path: normalized_path,
    operation: operation,
    disposition: disposition,
    **(nested_family ? { nested_family: nested_family } : {}),
    reason: reason
  }
end