15 lines
219 B
Ruby
15 lines
219 B
Ruby
# frozen_string_literal: true
|
|
|
|
class LogicSerializer
|
|
def self.load(logic)
|
|
if logic.present?
|
|
Logic.from_h(logic)
|
|
end
|
|
end
|
|
|
|
def self.dump(logic)
|
|
if logic.present?
|
|
logic.to_h
|
|
end
|
|
end
|
|
end
|