Class: TreeHaver::BinaryRenderPolicy

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#byte_rangeObject

Returns the value of attribute byte_range

Returns:

  • (Object)

    the current value of byte_range



179
180
181
# File 'lib/tree_haver/contracts.rb', line 179

def byte_range
  @byte_range
end

#dispositionObject

Returns the value of attribute disposition

Returns:

  • (Object)

    the current value of disposition



179
180
181
# File 'lib/tree_haver/contracts.rb', line 179

def disposition
  @disposition
end

#operationObject

Returns the value of attribute operation

Returns:

  • (Object)

    the current value of operation



179
180
181
# File 'lib/tree_haver/contracts.rb', line 179

def operation
  @operation
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



179
180
181
# File 'lib/tree_haver/contracts.rb', line 179

def reason
  @reason
end

#schema_pathObject

Returns the value of attribute schema_path

Returns:

  • (Object)

    the current value of schema_path



179
180
181
# File 'lib/tree_haver/contracts.rb', line 179

def schema_path
  @schema_path
end

Instance Method Details

#to_hObject



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