Class: TreeHaver::BinaryRawPayload
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::BinaryRawPayload
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#byte_length ⇒ Object
Returns the value of attribute byte_length.
-
#encoding ⇒ Object
Returns the value of attribute encoding.
-
#regions ⇒ Object
Returns the value of attribute regions.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#byte_length ⇒ Object
Returns the value of attribute byte_length
224 225 226 |
# File 'lib/tree_haver/contracts.rb', line 224 def byte_length @byte_length end |
#encoding ⇒ Object
Returns the value of attribute encoding
224 225 226 |
# File 'lib/tree_haver/contracts.rb', line 224 def encoding @encoding end |
#regions ⇒ Object
Returns the value of attribute regions
224 225 226 |
# File 'lib/tree_haver/contracts.rb', line 224 def regions @regions end |
#value ⇒ Object
Returns the value of attribute value
224 225 226 |
# File 'lib/tree_haver/contracts.rb', line 224 def value @value end |
Instance Method Details
#to_h ⇒ Object
225 226 227 228 229 230 231 232 |
# File 'lib/tree_haver/contracts.rb', line 225 def to_h { encoding: encoding, value: value, byte_length: byte_length, regions: (regions || []).map(&:to_h) } end |