13 lines
188 B
Ruby
13 lines
188 B
Ruby
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
|