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



817
818
819
# File 'lib/tree_haver/contracts.rb', line 817

def byte_range
  @byte_range
end

#expected_hexObject

Returns the value of attribute expected_hex

Returns:

  • (Object)

    the current value of expected_hex



817
818
819
# File 'lib/tree_haver/contracts.rb', line 817

def expected_hex
  @expected_hex
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



817
818
819
# File 'lib/tree_haver/contracts.rb', line 817

def kind
  @kind
end

#schema_pathObject

Returns the value of attribute schema_path

Returns:

  • (Object)

    the current value of schema_path



817
818
819
# File 'lib/tree_haver/contracts.rb', line 817

def schema_path
  @schema_path
end

Instance Method Details

#to_hObject



818
819
820
821
822
823
824
825
# File 'lib/tree_haver/contracts.rb', line 818

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