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



890
891
892
# File 'lib/tree_haver/contracts.rb', line 890

def disposition
  @disposition
end

#nested_familyObject

Returns the value of attribute nested_family

Returns:

  • (Object)

    the current value of nested_family



890
891
892
# File 'lib/tree_haver/contracts.rb', line 890

def nested_family
  @nested_family
end

#normalized_pathObject

Returns the value of attribute normalized_path

Returns:

  • (Object)

    the current value of normalized_path



890
891
892
# File 'lib/tree_haver/contracts.rb', line 890

def normalized_path
  @normalized_path
end

#operationObject

Returns the value of attribute operation

Returns:

  • (Object)

    the current value of operation



890
891
892
# File 'lib/tree_haver/contracts.rb', line 890

def operation
  @operation
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



890
891
892
# File 'lib/tree_haver/contracts.rb', line 890

def reason
  @reason
end

Instance Method Details

#to_hObject



892
893
894
895
896
897
898
899
900
# File 'lib/tree_haver/contracts.rb', line 892

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