Class: TreeHaver::ZipMemberDecision
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::ZipMemberDecision
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#disposition ⇒ Object
Returns the value of attribute disposition.
-
#nested_family ⇒ Object
Returns the value of attribute nested_family.
-
#normalized_path ⇒ Object
Returns the value of attribute normalized_path.
-
#operation ⇒ Object
Returns the value of attribute operation.
-
#reason ⇒ Object
Returns the value of attribute reason.
Instance Method Summary collapse
Instance Attribute Details
#disposition ⇒ Object
Returns the value of attribute disposition
284 285 286 |
# File 'lib/tree_haver/contracts.rb', line 284 def disposition @disposition end |
#nested_family ⇒ Object
Returns the value of attribute nested_family
284 285 286 |
# File 'lib/tree_haver/contracts.rb', line 284 def nested_family @nested_family end |
#normalized_path ⇒ Object
Returns the value of attribute normalized_path
284 285 286 |
# File 'lib/tree_haver/contracts.rb', line 284 def normalized_path @normalized_path end |
#operation ⇒ Object
Returns the value of attribute operation
284 285 286 |
# File 'lib/tree_haver/contracts.rb', line 284 def operation @operation end |
#reason ⇒ Object
Returns the value of attribute reason
284 285 286 |
# File 'lib/tree_haver/contracts.rb', line 284 def reason @reason end |
Instance Method Details
#to_h ⇒ Object
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 |