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
179 180 181 |
# File 'lib/tree_haver/contracts.rb', line 179 def byte_range @byte_range end |
#disposition ⇒ Object
Returns the value of attribute disposition
179 180 181 |
# File 'lib/tree_haver/contracts.rb', line 179 def disposition @disposition end |
#operation ⇒ Object
Returns the value of attribute operation
179 180 181 |
# File 'lib/tree_haver/contracts.rb', line 179 def operation @operation end |
#reason ⇒ Object
Returns the value of attribute reason
179 180 181 |
# File 'lib/tree_haver/contracts.rb', line 179 def reason @reason end |
#schema_path ⇒ Object
Returns the value of attribute schema_path
179 180 181 |
# File 'lib/tree_haver/contracts.rb', line 179 def schema_path @schema_path end |
Instance Method Details
#to_h ⇒ Object
180 181 182 183 184 185 186 187 188 |
# File 'lib/tree_haver/contracts.rb', line 180 def to_h { schema_path: schema_path, **(byte_range ? { byte_range: byte_range.to_h } : {}), operation: operation, disposition: disposition, reason: reason } end |