Class: Sibit::TxBuilder::Built::Payload
- Inherits:
-
Object
- Object
- Sibit::TxBuilder::Built::Payload
- Defined in:
- lib/sibit/txbuilder.rb
Overview
Wrapper for payload with hex conversion.
- Author
Yegor Bugayenko (yegor256@gmail.com)
- Copyright
Copyright (c) 2019-2026 Yegor Bugayenko
- License
MIT
Instance Method Summary collapse
- #bth ⇒ Object
-
#initialize(bytes) ⇒ Payload
constructor
A new instance of Payload.
Constructor Details
#initialize(bytes) ⇒ Payload
Returns a new instance of Payload.
139 140 141 |
# File 'lib/sibit/txbuilder.rb', line 139 def initialize(bytes) @bytes = bytes end |
Instance Method Details
#bth ⇒ Object
143 144 145 |
# File 'lib/sibit/txbuilder.rb', line 143 def bth @bytes.unpack1('H*') end |