Class: Struct

Inherits:
Object show all
Defined in:
lib/openc3/io/json_rpc.rb

Overview

:nodoc:

Direct Known Subclasses

OpenC3::StoreQueued::MessageStruct

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object



38
39
40
41
42
# File 'lib/openc3/io/json_rpc.rb', line 38

def as_json(options = nil)
  hash = {}
  self.each_pair { |k, v| hash[k.to_s] = v.as_json(options) }
  hash
end