Method: OpenC3::Conversion#call

Defined in:
lib/openc3/conversions/conversion.rb

#call(_value, _packet, _buffer) ⇒ Object

Perform the conversion on the value.

Parameters:

  • value (Object)

    The value to convert

  • packet (Packet)

    The packet which contains the value. This can be useful to reach into the packet and use other values in the conversion.

  • buffer (String)

    The packet buffer

Returns:

  • The converted value



52
53
54
# File 'lib/openc3/conversions/conversion.rb', line 52

def call(_value, _packet, _buffer)
  raise "call method must be defined by subclass"
end