Class: TreeHaver::BinaryRenderPolicy
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::BinaryRenderPolicy
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#byte_range ⇒ Object
Returns the value of attribute byte_range.
-
#disposition ⇒ Object
Returns the value of attribute disposition.
-
#operation ⇒ Object
Returns the value of attribute operation.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#schema_path ⇒ Object
Returns the value of attribute schema_path.
Instance Method Summary collapse
Instance Attribute Details
#byte_range ⇒ Object
Returns the value of attribute byte_range
783 784 785 |
# File 'lib/tree_haver/contracts.rb', line 783 def byte_range @byte_range end |
#disposition ⇒ Object
Returns the value of attribute disposition
783 784 785 |
# File 'lib/tree_haver/contracts.rb', line 783 def disposition @disposition end |
#operation ⇒ Object
Returns the value of attribute operation
783 784 785 |
# File 'lib/tree_haver/contracts.rb', line 783 def operation @operation end |
#reason ⇒ Object
Returns the value of attribute reason
783 784 785 |
# File 'lib/tree_haver/contracts.rb', line 783 def reason @reason end |
#schema_path ⇒ Object
Returns the value of attribute schema_path
783 784 785 |
# File 'lib/tree_haver/contracts.rb', line 783 def schema_path @schema_path end |
Instance Method Details
#to_h ⇒ Object
784 785 786 787 788 789 790 791 792 |
# File 'lib/tree_haver/contracts.rb', line 784 def to_h { schema_path: schema_path, **(byte_range ? { byte_range: byte_range.to_h } : {}), operation: operation, disposition: disposition, reason: reason } end |