Class: TreeHaver::BinaryPayloadRegion

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



213
214
215
# File 'lib/tree_haver/contracts.rb', line 213

def byte_range
  @byte_range
end

#expected_hexObject

Returns the value of attribute expected_hex

Returns:

  • (Object)

    the current value of expected_hex



213
214
215
# File 'lib/tree_haver/contracts.rb', line 213

def expected_hex
  @expected_hex
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



213
214
215
# File 'lib/tree_haver/contracts.rb', line 213

def kind
  @kind
end

#schema_pathObject

Returns the value of attribute schema_path

Returns:

  • (Object)

    the current value of schema_path



213
214
215
# File 'lib/tree_haver/contracts.rb', line 213

def schema_path
  @schema_path
end

Instance Method Details

#to_hObject



214
215
216
217
218
219
220
221
# File 'lib/tree_haver/contracts.rb', line 214

def to_h
  {
    kind: kind,
    schema_path: schema_path,
    byte_range: byte_range.to_h,
    expected_hex: expected_hex
  }
end