Class: Solace::Instruction

Inherits:
SerializableRecord show all
Defined in:
lib/solace/instruction.rb

Constant Summary collapse

SERIALIZER =
Solace::Serializers::InstructionSerializer
DESERIALIZER =
Solace::Serializers::InstructionDeserializer

Instance Attribute Summary collapse

Method Summary

Methods inherited from SerializableRecord

deserialize, #serialize

Methods included from Concerns::BinarySerializable

#to_binary, #to_bytes, #to_io

Instance Attribute Details

#accountsArray<Integer>

Returns The accounts of the instruction.

Returns:

  • (Array<Integer>)

    The accounts of the instruction



32
33
34
# File 'lib/solace/instruction.rb', line 32

def accounts
  @accounts
end

#dataArray<Integer>

Returns The instruction data.

Returns:

  • (Array<Integer>)

    The instruction data



36
37
38
# File 'lib/solace/instruction.rb', line 36

def data
  @data
end

#program_indexInteger

Returns The program index of the instruction.

Returns:

  • (Integer)

    The program index of the instruction



28
29
30
# File 'lib/solace/instruction.rb', line 28

def program_index
  @program_index
end