class ActiveJob::Serializers::RangeSerializer

def deserialize(hash)

def deserialize(hash)
  klass.new(*Arguments.deserialize(hash.values_at(*KEYS)))
end

def klass

def klass
  ::Range
end

def serialize(range)

def serialize(range)
  args = Arguments.serialize([range.begin, range.end, range.exclude_end?])
  super(KEYS.zip(args).to_h)
end