Class: Tapyrus::Message::NotFound

Inherits:
Base
  • Object
show all
Extended by:
InventoriesParser
Includes:
InventoriesParser
Defined in:
lib/tapyrus/message/not_found.rb

Overview

Constant Summary collapse

COMMAND =
"notfound"

Constants included from Util

Util::DIGEST_NAME_SHA256

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from InventoriesParser

parse_from_payload, to_payload

Methods inherited from Base

#to_payload, #to_pkt

Methods included from Util

#byte_to_bit, #calc_checksum, #decode_base58_address, #double_sha256, #encode_base58_address, #hash160, #hmac_sha256, #pack_boolean, #pack_var_int, #pack_var_string, #padding_zero, #sha256, #unpack_boolean, #unpack_var_int, #unpack_var_int_from_io, #unpack_var_string, #valid_address?

Methods included from HexConverter

#to_hex

Constructor Details

#initialize(inventories = []) ⇒ NotFound

Returns a new instance of NotFound.



13
14
15
# File 'lib/tapyrus/message/not_found.rb', line 13

def initialize(inventories = [])
  @inventories = inventories
end

Instance Attribute Details

#inventoriesObject (readonly)

Returns the value of attribute inventories.



9
10
11
# File 'lib/tapyrus/message/not_found.rb', line 9

def inventories
  @inventories
end