class Comet::SpannedDestinationLocation
def from_hash(obj)
-
obj
(Hash
) -- The complete object as a Ruby hash
def from_hash(obj) raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash obj.each do |k, v| case k when 'SpanTargets' if v.nil? @span_targets = [] else @span_targets = Array.new(v.length) v.each_with_index do |v1, i1| @span_targets[i1] = Comet::DestinationLocation.new @span_targets[i1].from_hash(v1) end end when 'SpanUseStaticSlots' @span_use_static_slots = v else @unknown_json_fields[k] = v end end end